github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/customer_gateway.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_customer_gateway"
     4  sidebar_current: "docs-aws-resource-customer-gateway"
     5  description: |-
     6    Provides a customer gateway inside a VPC. These objects can be
     7    connected to VPN gateways via VPN connections, and allow you to
     8    establish tunnels between your network and the VPC.
     9  ---
    10  
    11  # aws\_customer\_gateway
    12  
    13  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.
    14  
    15  ## Example Usage
    16  
    17  ```hcl
    18  resource "aws_customer_gateway" "main" {
    19    bgp_asn    = 65000
    20    ip_address = "172.83.124.10"
    21    type       = "ipsec.1"
    22  
    23    tags {
    24      Name = "main-customer-gateway"
    25    }
    26  }
    27  ```
    28  
    29  ## Argument Reference
    30  
    31  The following arguments are supported:
    32  
    33  * `bgp_asn` - (Required) The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
    34  * `ip_address` - (Required) The IP address of the gateway's Internet-routable external interface.
    35  * `type` - (Required) The type of customer gateway. The only type AWS
    36    supports at this time is "ipsec.1".
    37  * `tags` - (Optional) Tags to apply to the gateway.
    38  
    39  ## Attribute Reference
    40  
    41  The following attributes are exported:
    42  
    43  * `id` - The amazon-assigned ID of the gateway.
    44  * `bgp_asn` - The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
    45  * `ip_address` - The IP address of the gateway's Internet-routable external interface.
    46  * `type` - The type of customer gateway.
    47  * `tags` - Tags applied to the gateway.
    48  
    49  
    50  ## Import
    51  
    52  Customer Gateways can be imported using the `id`, e.g.
    53  
    54  ```
    55  $ terraform import aws_customer_gateway.main cgw-b4dc3961
    56  ```