Skip to main content

route_tables

Retrieves a list of route_tables in a region

Overview

Nameroute_tables
TypeResource
DescriptionSpecifies 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*.
Idaws.ec2.route_tables

Fields

NameDatatypeDescription
route_table_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTdata__DesiredState, region
list_resourceSELECTregion

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