AWS::EC2::VPCGatewayAttachmentResource Type definition for AWS::EC2::VPCGatewayAttachment
3 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
VpcId | string | RequiredCreate-only |
InternetGatewayId | string | |
VpnGatewayId | string |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
AttachmentType | string | Used to identify if this resource is an Internet Gateway or Vpn Gateway Attachment |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::VPCGatewayAttachment
Resources:
MyResource:
Type: AWS::EC2::VPCGatewayAttachment
Properties:
VpcId: "my-vpcid"Permissions CloudFormation needs in your IAM role to manage this resource.
ec2:AttachInternetGatewayec2:AttachVpnGatewayec2:DescribeInternetGatewaysec2:DescribeVpnGatewaysec2:DescribeInternetGatewaysec2:DescribeVpnGatewaysec2:AttachInternetGatewayec2:AttachVpnGatewayec2:DetachInternetGatewayec2:DetachVpnGatewayec2:DescribeInternetGatewaysec2:DescribeVpnGatewaysec2:DetachInternetGatewayec2:DetachVpnGatewayec2:DescribeInternetGatewaysec2:DescribeVpnGatewaysec2:DescribeInternetGatewaysec2:DescribeVpnGatewaysEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicAttachmentTypeThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
VpcId