Skip to main content

routes

Retrieves a list of routes in a region

Overview

Nameroutes
TypeResource
Descriptionroutes
Idawscc.ec2.routes

Fields

NameDatatypeDescription
route_table_idstringThe ID of the route table. The routing table must be associated with the same VPC that the virtual private gateway is attached to.
cidr_blockstringThe primary identifier of the resource generated by the service.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
route_table_id,
cidr_block
FROM awscc.ec2.routes
WHERE region = 'us-east-1'

Permissions

To operate on the routes resource, the following permissions are required:

Create

ec2:CreateRoute,
ec2:DescribeRouteTables,
ec2:DescribeNetworkInterfaces

List

ec2:DescribeRouteTables