AWS::EC2::VPNGateway
Creates a virtual private gateway. A virtual private gateway is the VPC-side endpoint for your VPN connection.
Topics
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::EC2::VPNGateway", "Properties" : { "AmazonSideAsn" :Long, "Type" :String, "Tags" : [Resource Tag, ...] } }
YAML
Type: AWS::EC2::VPNGateway Properties: AmazonSideAsn:LongType:StringTags:Resource Tag
Properties
AmazonSideAsn-
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
Required: No
Type: Long
Update requires: Replacement
Type-
The type of VPN connection this virtual private gateway supports. The only valid value is
"ipsec.1".Required: Yes
Type: String
Update requires: Replacement
Tags-
An arbitrary set of tags (key–value pairs) for this resource.
Required: No
Type: Resource Tag
Update requires: No interruption.
Return Value
When the logical ID of this resource is provided to the Ref intrinsic
function, Ref returns the resource name. For example:
{ "Ref": "MyVPNGateway" }
For the VPN gateway with the logical ID "MyVPNGateway", Ref will return the gateway's
resource name.
For more information about using the Ref function, see Ref.
Example
JSON
{ "AWSTemplateFormatVersion" : "2010-09-09", "Resources" : { "myVPNGateway" : { "Type" : "AWS::EC2::VPNGateway", "Properties" : { "Type" : "ipsec.1", "Tags" : [ { "Key" : "Use", "Value" : "Test" } ] } } } }
YAML
AWSTemplateFormatVersion: "2010-09-09" Resources: myVPNGateway: Type: AWS::EC2::VPNGateway Properties: Type: ipsec.1 Tags: - Key: Use Value: Test
See Also
-
CreateVpnGateway in the Amazon EC2 API Reference.
