AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::LocalGatewayRouteTableVPCAssociation

EC2 LocalGatewayRouteTableVPCAssociation

Resource Type definition for Local Gateway Route Table VPC Association which describes an association between a local gateway route table and a VPC.

Properties

3 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
LocalGatewayRouteTableId
string
RequiredCreate-only
VpcId
string
RequiredCreate-only
Tags
array

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
LocalGatewayIdstringThe ID of the local gateway.
LocalGatewayRouteTableVpcAssociationIdstringThe ID of the association.
StatestringThe state of the association.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::LocalGatewayRouteTableVPCAssociation

Resources:
  MyResource:
    Type: AWS::EC2::LocalGatewayRouteTableVPCAssociation
    Properties:
      LocalGatewayRouteTableId: "my-localgatewayroutetableid"
      VpcId: "my-vpcid"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

ec2:CreateLocalGatewayRouteTableVpcAssociationec2:DescribeLocalGatewayRouteTableVpcAssociationsec2:CreateTags

read

ec2:DescribeLocalGatewayRouteTableVpcAssociationsec2:DescribeTags

update

ec2:DescribeLocalGatewayRouteTableVpcAssociationsec2:CreateTagsec2:DeleteTagsec2:DescribeTags

delete

ec2:DeleteLocalGatewayRouteTableVpcAssociationec2:DescribeLocalGatewayRouteTableVpcAssociationsec2:DeleteTags

list

ec2:DescribeLocalGatewayRouteTableVpcAssociations

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties6
Required2
TaggingSupported
Primary IDLocalGatewayRouteTableVpcAssociationId

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

LocalGatewayRouteTableIdVpcId

External Links