AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::TransitGateway

EC2 TransitGateway

Resource Type definition for AWS::EC2::TransitGateway

Properties

14 configurable properties. Click a row to see details.

Filter:
PropertyTypeFlags
AmazonSideAsn
integer
Create-only
AssociationDefaultRouteTableId
string
AutoAcceptSharedAttachments
string
DefaultRouteTableAssociation
string
DefaultRouteTablePropagation
string
Description
string
DnsSupport
string
EncryptionSupport
string
Write-only
MulticastSupport
string
Create-only
PropagationDefaultRouteTableId
string
SecurityGroupReferencingSupport
string
Tags
Array<Tag>
TransitGatewayCidrBlocks
Array<string>
VpnEcmpSupport
string

Return Values

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

AttributeTypeDescription
EncryptionSupportStatestring-
Idstring-
TransitGatewayArnstring-

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

Resources:
  MyResource:
    Type: AWS::EC2::TransitGateway
    Properties:
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"

Required IAM Permissions

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

create

ec2:CreateTransitGatewayec2:CreateTagsec2:DescribeTransitGatewaysec2:DescribeTagsec2:ModifyTransitGatewayec2:ModifyTransitGatewayOptions

read

ec2:DescribeTransitGatewaysec2:DescribeTags

delete

ec2:DescribeTransitGatewaysec2:DescribeTagsec2:DeleteTransitGatewayec2:DeleteTags

update

ec2:CreateTransitGatewayec2:CreateTagsec2:DescribeTransitGatewaysec2:DescribeTagsec2:DeleteTransitGatewayec2:DeleteTagsec2:ModifyTransitGatewayec2:ModifyTransitGatewayOptions

list

ec2:DescribeTransitGatewaysec2:DescribeTags

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
Properties17
Required0
TaggingSupported
Primary IDId

Supported Operations

CreateReadDeleteUpdateList

Immutable After Creation

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

AmazonSideAsnMulticastSupport

External Links