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
Name | local_gateway_route_tablevpc_associations |
Type | Resource |
Description | Describes an association between a local gateway route table and a VPC. |
Id | aws.ec2.local_gateway_route_tablevpc_associations |
Fields
Name | Datatype | Description |
---|---|---|
local_gateway_route_table_vpc_association_id | string | The ID of the association. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | LocalGatewayRouteTableId, VpcId, region |
delete_resource | DELETE | data__Identifier, region |
list_resource | SELECT | region |
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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.local_gateway_route_tablevpc_associations (
LocalGatewayRouteTableId,
VpcId,
region
)
SELECT
'{{ LocalGatewayRouteTableId }}',
'{{ VpcId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.local_gateway_route_tablevpc_associations (
LocalGatewayRouteTableId,
VpcId,
Tags,
region
)
SELECT
'{{ LocalGatewayRouteTableId }}',
'{{ VpcId }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: local_gateway_route_tablevpc_association
props:
- name: LocalGatewayRouteTableId
value: '{{ LocalGatewayRouteTableId }}'
- name: VpcId
value: '{{ VpcId }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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