Skip to main content

local_gateway_route_tables

Creates, updates, deletes or gets a local_gateway_route_table resource or lists local_gateway_route_tables in a region

Overview

Namelocal_gateway_route_tables
TypeResource
DescriptionDescribes a route table for a local gateway.
Idaws.ec2.local_gateway_route_tables

Fields

NameDatatypeDescription
local_gateway_route_table_idstringThe ID of the local gateway route table.
local_gateway_route_table_arnstringThe ARN of the local gateway route table.
local_gateway_idstringThe ID of the local gateway.
outpost_arnstringThe ARN of the outpost.
owner_idstringThe owner of the local gateway route table.
statestringThe state of the local gateway route table.
modestringThe mode of the local gateway route table.
tagsarrayThe tags for the local gateway route table.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTLocalGatewayId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all local_gateway_route_tables in a region.

SELECT
region,
local_gateway_route_table_id,
local_gateway_route_table_arn,
local_gateway_id,
outpost_arn,
owner_id,
state,
mode,
tags
FROM aws.ec2.local_gateway_route_tables
WHERE region = 'us-east-1';

Gets all properties from an individual local_gateway_route_table.

SELECT
region,
local_gateway_route_table_id,
local_gateway_route_table_arn,
local_gateway_id,
outpost_arn,
owner_id,
state,
mode,
tags
FROM aws.ec2.local_gateway_route_tables
WHERE region = 'us-east-1' AND data__Identifier = '<LocalGatewayRouteTableId>';

INSERT example

Use the following StackQL query and manifest file to create a new local_gateway_route_table resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ec2.local_gateway_route_tables (
LocalGatewayId,
region
)
SELECT
'{{ LocalGatewayId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ec2.local_gateway_route_tables
WHERE data__Identifier = '<LocalGatewayRouteTableId>'
AND region = 'us-east-1';

Permissions

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

Create

ec2:CreateLocalGatewayRouteTable,
ec2:DescribeLocalGatewayRouteTables,
ec2:CreateTags

Read

ec2:DescribeLocalGatewayRouteTables

Update

ec2:DescribeLocalGatewayRouteTables,
ec2:CreateTags,
ec2:DeleteTags

Delete

ec2:DeleteLocalGatewayRouteTable,
ec2:DescribeLocalGatewayRouteTables,
ec2:DeleteTags

List

ec2:DescribeLocalGatewayRouteTables