Skip to main content

local_gateway_route_tablevpc_associations

Used to retrieve a list of local_gateway_route_tablevpc_associations in a region or to create or delete a local_gateway_route_tablevpc_associations resource, use local_gateway_route_tablevpc_association to read or update an individual resource.

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_route_table_vpc_association_idstringThe ID of the association.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTLocalGatewayRouteTableId, VpcId, region
delete_resourceDELETEdata__Identifier, region
list_resourceSELECTregion

SELECT Example

SELECT
region,
local_gateway_route_table_vpc_association_id
FROM aws.ec2.local_gateway_route_tablevpc_associations
WHERE region = 'us-east-1';

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

Delete

ec2:DeleteLocalGatewayRouteTableVpcAssociation,
ec2:DescribeLocalGatewayRouteTableVpcAssociations,
ec2:DeleteTags

List

ec2:DescribeLocalGatewayRouteTableVpcAssociations