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
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_id | string | The ID of the local gateway. |
local_gateway_route_table_id | string | The ID of the local gateway route table. |
local_gateway_route_table_vpc_association_id | string | The ID of the association. |
state | string | The state of the association. |
vpc_id | string | The ID of the VPC. |
tags | array | The tags for the association. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | LocalGatewayRouteTableId, VpcId, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- 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
Read
ec2:DescribeLocalGatewayRouteTableVpcAssociations
Update
ec2:DescribeLocalGatewayRouteTableVpcAssociations,
ec2:CreateTags,
ec2:DeleteTags
Delete
ec2:DeleteLocalGatewayRouteTableVpcAssociation,
ec2:DescribeLocalGatewayRouteTableVpcAssociations,
ec2:DeleteTags
List
ec2:DescribeLocalGatewayRouteTableVpcAssociations