Skip to main content

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

Nameroute_table
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_table

Fields

NameDatatypeDescription
route_table_idstring
tagsarrayAny tags assigned to the route table.
vpc_idstringThe ID of the VPC.
regionstringAWS region.

Methods

NameAccessible byRequired Params
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__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