Provides a customer gateway inside a VPC. These objects can be connected to VPN gateways via VPN connections, and allow you to establish tunnels between your network and the VPC.
resource "aws_customer_gateway" "main" { bgp_asn = 65000 ip_address = "172.83.124.10" type = "ipsec.1" tags { Name = "main-customer-gateway" } }
The following arguments are supported:
bgp_asn
- (Required) The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN). ip_address
- (Required) The IP address of the gateway's Internet-routable external interface. type
- (Required) The type of customer gateway. The only type AWS supports at this time is "ipsec.1". tags
- (Optional) Tags to apply to the gateway. In addition to all arguments above, the following attributes are exported:
id
- The amazon-assigned ID of the gateway. bgp_asn
- The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN). ip_address
- The IP address of the gateway's Internet-routable external interface. type
- The type of customer gateway. tags
- Tags applied to the gateway. Customer Gateways can be imported using the id
, e.g.
$ terraform import aws_customer_gateway.main cgw-b4dc3961
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/customer_gateway.html