route_tables
Retrieves a list of route_tables
in a region
Overview
Name | route_tables |
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_tables |
Fields
Name | Datatype | Description |
---|---|---|
route_table_id | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | data__DesiredState, region |
list_resource | SELECT | region |
SELECT
Example
SELECT
region,
route_table_id
FROM aws.ec2.route_tables
WHERE region = 'us-east-1'
Permissions
To operate on the route_tables
resource, the following permissions are required:
Create
ec2:CreateRouteTable,
ec2:CreateTags,
ec2:DescribeRouteTables
List
ec2:DescribeRouteTables