AWS Fundamentals Logo
AWS Fundamentals
AWS::DirectConnect::DirectConnectGatewayAssociation

DirectConnect DirectConnectGatewayAssociation

Resource Type definition for AWS::DirectConnect::DirectConnectGatewayAssociation

Properties

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

Filter:
PropertyTypeFlags
AssociatedGatewayId
Any | Any | Any
RequiredCreate-only
DirectConnectGatewayId
Any | Any
RequiredCreate-only
AcceptDirectConnectGatewayAssociationProposalRoleArn
string
Create-onlyWrite-only
AllowedPrefixesToDirectConnectGateway
Array<string>

Return Values

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

AttributeTypeDescription
AssociationIdstringThe ID of the Direct Connect gateway 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::DirectConnect::DirectConnectGatewayAssociation

Resources:
  MyResource:
    Type: AWS::DirectConnect::DirectConnectGatewayAssociation
    Properties:
      DirectConnectGatewayId: "my-directconnectgatewayid"
      AssociatedGatewayId: "my-associatedgatewayid"

Required IAM Permissions

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

read

directconnect:DescribeDirectConnectGatewayAssociations

create

directconnect:CreateDirectConnectGatewayAssociationProposaldirectconnect:CreateDirectConnectGatewayAssociationdirectconnect:DescribeDirectConnectGatewayAssociationssts:AssumeRole

update

directconnect:DescribeDirectConnectGatewayAssociationsdirectconnect:UpdateDirectConnectGatewayAssociationsts:AssumeRole

list

directconnect:DescribeDirectConnectGatewayAssociations

delete

directconnect:DeleteDirectConnectGatewayAssociationdirectconnect:DescribeDirectConnectGatewayAssociations

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceDirectConnect
Properties5
Required2
TaggingNot supported
Primary IDAssociationId

Supported Operations

ReadCreateUpdateListDelete

Immutable After Creation

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

AcceptDirectConnectGatewayAssociationProposalRoleArnAssociatedGatewayIdDirectConnectGatewayId

External Links