Skip to main content

transit_gateway_route_tables

Creates, updates, deletes or gets a transit_gateway_route_table resource or lists transit_gateway_route_tables in a region

Overview

Nametransit_gateway_route_tables
TypeResource
DescriptionResource Type definition for AWS::EC2::TransitGatewayRouteTable
Idaws.ec2.transit_gateway_route_tables

Fields

NameDatatypeDescription
transit_gateway_route_table_idstringTransit Gateway Route Table primary identifier
transit_gateway_idstringThe ID of the transit gateway.
tagsarrayTags are composed of a Key/Value pair. You can use tags to categorize and track each parameter group. The tag value null is permitted.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTTransitGatewayId, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all transit_gateway_route_tables in a region.

SELECT
region,
transit_gateway_route_table_id,
transit_gateway_id,
tags
FROM aws.ec2.transit_gateway_route_tables
WHERE region = 'us-east-1';

Gets all properties from an individual transit_gateway_route_table.

SELECT
region,
transit_gateway_route_table_id,
transit_gateway_id,
tags
FROM aws.ec2.transit_gateway_route_tables
WHERE region = 'us-east-1' AND data__Identifier = '<TransitGatewayRouteTableId>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

ec2:CreateTransitGatewayRouteTable,
ec2:CreateTags,
ec2:DescribeTransitGatewayRouteTables

Read

ec2:DescribeTransitGatewayRouteTables

Delete

ec2:DeleteTransitGatewayRouteTable,
ec2:DescribeTransitGatewayRouteTables,
ec2:GetTransitGatewayRouteTableAssociations,
ec2:DisassociateTransitGatewayRouteTable

List

ec2:DescribeTransitGatewayRouteTables