route_table
Gets or updates an individual route_table
resource, use route_tables
to retrieve a list of resources or to create or delete a resource.
Overview
Name | route_table |
Type | Resource |
Description | Specifies a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.<br/> For more information, see [Route tables](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the *Amazon VPC User Guide*. |
Id | aws.ec2.route_table |
Fields
Name | Datatype | Description |
---|---|---|
route_table_id | string | |
tags | array | Any tags assigned to the route table. |
vpc_id | string | The ID of the VPC. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__Identifier, region |
SELECT
Example
SELECT
region,
route_table_id,
tags,
vpc_id
FROM aws.ec2.route_table
WHERE region = 'us-east-1' AND data__Identifier = '<RouteTableId>';
Permissions
To operate on the route_table
resource, the following permissions are required:
Read
ec2:DescribeRouteTables
Update
ec2:CreateTags,
ec2:DeleteTags,
ec2:DescribeRouteTables