Resource
aws.ec2.VpnGateway
Describes a virtual private gateway.
Example
aws.ec2.VpnGateway {
type = aws.ec2.VpnGateway.Type.ipsec_1
tags = {
Environment = 'example'
}
}
Argument Reference
amazon_side_asn
- Type:
Ec2VpnGatewayAmazonSideAsn (range: 7224..=4294967294, custom validator); 64512..=65534 or 4200000000..=4294967294; legacy Amazon ASNs: 7224, 9059, 10124, 17493 - Required: No
A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range. Default: 64512
availability_zone
- Type:
ZoneName (custom validator, DSL transform: HyphenToUnderscore) - Required: No
The Availability Zone for the virtual private gateway.
type
- Type: Type
- Required: Yes
The type of VPN connection this virtual private gateway supports.
tags
- Type: Map<
String,String> - Required: No
The tags for the resource.
Enum Values
type (Type)
| Value | DSL Identifier |
|---|---|
ipsec.1 |
aws.ec2.VpnGateway.Type.ipsec_1 |
Shorthand formats: ipsec_1 or Type.ipsec_1
Attribute Reference
vpn_gateway_id
- Type:
VpnGatewayId (pattern: /^vgw-[0-9a-f]{8,}$/ (Full)) - Read-only
The ID of the virtual private gateway.