Skip to main content

local_gateway_routes

Retrieves a list of local_gateway_routes in a region

Overview

Namelocal_gateway_routes
TypeResource
DescriptionDescribes a route for a local gateway route table.
Idaws.ec2.local_gateway_routes

Fields

NameDatatypeDescription
destination_cidr_blockstringThe CIDR block used for destination matches.
local_gateway_route_table_idstringThe ID of the local gateway route table.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTdata__DesiredState, region
list_resourceSELECTregion

SELECT Example

SELECT
region,
destination_cidr_block,
local_gateway_route_table_id
FROM aws.ec2.local_gateway_routes
WHERE region = 'us-east-1'

Permissions

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

Create

ec2:CreateLocalGatewayRoute,
ec2:SearchLocalGatewayRoutes

List

ec2:DescribeLocalGatewayRouteTables,
ec2:SearchLocalGatewayRoutes