AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::TransitGatewayPeeringAttachment

EC2 TransitGatewayPeeringAttachment

The AWS::EC2::TransitGatewayPeeringAttachment type

Properties

5 configurable properties. 4 required. Click a row to see details.

Filter:
PropertyTypeFlags
PeerAccountId
string
RequiredCreate-only
PeerRegion
string
RequiredCreate-only
PeerTransitGatewayId
string
RequiredCreate-only
TransitGatewayId
string
RequiredCreate-only
Tags
Array<Tag>

Return Values

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

AttributeTypeDescription
CreationTimestringThe time the transit gateway peering attachment was created.
StatestringThe state of the transit gateway peering attachment. Note that the initiating state has been deprecated.
StatusPeeringAttachmentStatusThe status of the transit gateway peering attachment.
TransitGatewayAttachmentIdstringThe ID of the transit gateway peering attachment.

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

Resources:
  MyResource:
    Type: AWS::EC2::TransitGatewayPeeringAttachment
    Properties:
      TransitGatewayId: "my-transitgatewayid"
      PeerTransitGatewayId: "my-peertransitgatewayid"
      PeerAccountId: "my-peeraccountid"
      PeerRegion: "value"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

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

read

ec2:DescribeTransitGatewayPeeringAttachmentsec2:DescribeTags

create

ec2:CreateTransitGatewayPeeringAttachmentec2:DescribeTransitGatewayPeeringAttachmentsec2:CreateTagsec2:DescribeTags

update

ec2:DescribeTransitGatewayPeeringAttachmentsec2:CreateTagsec2:DeleteTagsec2:DescribeTags

list

ec2:DescribeTransitGatewayPeeringAttachmentsec2:DescribeTags

delete

ec2:DeleteTransitGatewayPeeringAttachmentec2:DescribeTransitGatewayPeeringAttachmentsec2:DeleteTagsec2: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
Properties9
Required4
TaggingSupported
Primary IDTransitGatewayAttachmentId

Supported Operations

ReadCreateUpdateListDelete

Immutable After Creation

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

TransitGatewayIdPeerTransitGatewayIdPeerRegionPeerAccountId

External Links