AWS::EC2::VPNGatewaySpecifies a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself. For more information, see [](https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the *User Guide*.
3 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
Type | string | RequiredCreate-only |
AmazonSideAsn | integer | Create-only |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
VPNGatewayId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::VPNGateway
Resources:
MyResource:
Type: AWS::EC2::VPNGateway
Properties:
Type: "value"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
ec2:CreateVpnGatewayec2:DescribeVpnGatewaysec2:CreateTagsec2:DescribeVpnGatewaysec2:DescribeVpnGatewaysec2:CreateTagsec2:DeleteTagsec2:DeleteVpnGatewayec2:DescribeVpnGatewaysec2:DescribeVpnGatewaysEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicVPNGatewayIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
AmazonSideAsnType