AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::LocalGatewayRoute

EC2 LocalGatewayRoute

Resource Type definition for Local Gateway Route which describes a route for a local gateway route table.

Properties

4 configurable properties. Click a row to see details.

Filter:
PropertyTypeFlags
DestinationCidrBlock
string
Create-only
LocalGatewayRouteTableId
string
Create-only
LocalGatewayVirtualInterfaceGroupId
string
NetworkInterfaceId
string

Return Values

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

AttributeTypeDescription
StatestringThe state of the route.
TypestringThe route type.

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::LocalGatewayRoute

Resources:
  MyResource:
    Type: AWS::EC2::LocalGatewayRoute
    Properties:

Required IAM Permissions

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

create

ec2:CreateLocalGatewayRouteec2:SearchLocalGatewayRoutes

read

ec2:SearchLocalGatewayRoutes

delete

ec2:DeleteLocalGatewayRouteec2:SearchLocalGatewayRoutes

list

ec2:DescribeLocalGatewayRouteTablesec2:SearchLocalGatewayRoutes

update

ec2:ModifyLocalGatewayRouteec2:SearchLocalGatewayRoutes

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
Required0
TaggingNot supported
Primary IDDestinationCidrBlock

Supported Operations

CreateReadDeleteListUpdate

Immutable After Creation

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

DestinationCidrBlockLocalGatewayRouteTableId

External Links