AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::TransitGatewayPolicyTableAssociation

EC2 TransitGatewayPolicyTableAssociation

AWS::EC2::TransitGatewayPolicyTableAssociation Resource Definition

Properties

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

Filter:
PropertyTypeFlags
TransitGatewayAttachmentId
string
RequiredCreate-only
TransitGatewayPolicyTableId
string
RequiredCreate-only

Return Values

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

AttributeTypeDescription
StatestringThe state of the transit gateway policy table 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::TransitGatewayPolicyTableAssociation

Resources:
  MyResource:
    Type: AWS::EC2::TransitGatewayPolicyTableAssociation
    Properties:
      TransitGatewayPolicyTableId: "my-transitgatewaypolicytableid"
      TransitGatewayAttachmentId: "my-transitgatewayattachmentid"

Required IAM Permissions

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

create

ec2:GetTransitGatewayPolicyTableAssociationsec2:AssociateTransitGatewayPolicyTable

read

ec2:GetTransitGatewayPolicyTableAssociations

delete

ec2:GetTransitGatewayPolicyTableAssociationsec2:DisassociateTransitGatewayPolicyTable

list

ec2:GetTransitGatewayPolicyTableAssociations

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
Properties3
Required2
TaggingNot supported
Primary IDTransitGatewayPolicyTableId

Supported Operations

CreateReadDeleteList

Immutable After Creation

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

TransitGatewayAttachmentIdTransitGatewayPolicyTableId

External Links