Skip to main content

local_gateway_route_tablevpc_associations

Creates, updates, deletes or gets a local_gateway_route_tablevpc_association resource or lists local_gateway_route_tablevpc_associations in a region

Overview

Namelocal_gateway_route_tablevpc_associations
TypeResource
DescriptionDescribes an association between a local gateway route table and a VPC.
Idaws.ec2.local_gateway_route_tablevpc_associations

Fields

NameDatatypeDescription
local_gateway_idstringThe ID of the local gateway.
local_gateway_route_table_idstringThe ID of the local gateway route table.
local_gateway_route_table_vpc_association_idstringThe ID of the association.
statestringThe state of the association.
vpc_idstringThe ID of the VPC.
tagsarrayThe tags for the association.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTLocalGatewayRouteTableId, VpcId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all local_gateway_route_tablevpc_associations in a region.

SELECT
region,
local_gateway_id,
local_gateway_route_table_id,
local_gateway_route_table_vpc_association_id,
state,
vpc_id,
tags
FROM aws.ec2.local_gateway_route_tablevpc_associations
WHERE region = 'us-east-1';

Gets all properties from an individual local_gateway_route_tablevpc_association.

SELECT
region,
local_gateway_id,
local_gateway_route_table_id,
local_gateway_route_table_vpc_association_id,
state,
vpc_id,
tags
FROM aws.ec2.local_gateway_route_tablevpc_associations
WHERE region = 'us-east-1' AND data__Identifier = '<LocalGatewayRouteTableVpcAssociationId>';

INSERT example

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

/*+ create */
INSERT INTO aws.ec2.local_gateway_route_tablevpc_associations (
LocalGatewayRouteTableId,
VpcId,
region
)
SELECT
'{{ LocalGatewayRouteTableId }}',
'{{ VpcId }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

ec2:CreateLocalGatewayRouteTableVpcAssociation,
ec2:DescribeLocalGatewayRouteTableVpcAssociations,
ec2:CreateTags

Read

ec2:DescribeLocalGatewayRouteTableVpcAssociations

Update

ec2:DescribeLocalGatewayRouteTableVpcAssociations,
ec2:CreateTags,
ec2:DeleteTags

Delete

ec2:DeleteLocalGatewayRouteTableVpcAssociation,
ec2:DescribeLocalGatewayRouteTableVpcAssociations,
ec2:DeleteTags

List

ec2:DescribeLocalGatewayRouteTableVpcAssociations