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

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_vpn_gateway"
     4  sidebar_current: "docs-aws-resource-vpn-gateway"
     5  description: |-
     6    Provides a resource to create a VPC VPN Gateway.
     7  ---
     8  
     9  # aws\_vpn\_gateway
    10  
    11  Provides a resource to create a VPC VPN Gateway.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "aws_vpn_gateway" "vpn_gw" {
    17    vpc_id = "${aws_vpc.main.id}"
    18  
    19    tags {
    20      Name = "main"
    21    }
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  The following arguments are supported:
    28  
    29  * `vpc_id` - (Optional) The VPC ID to create in.
    30  * `availability_zone` - (Optional) The Availability Zone for the virtual private gateway.
    31  * `tags` - (Optional) A mapping of tags to assign to the resource.
    32  
    33  ## Attributes Reference
    34  
    35  The following attributes are exported:
    36  
    37  * `id` - The ID of the VPN Gateway.
    38  
    39  
    40  ## Import
    41  
    42  VPN Gateways can be imported using the `vpn gateway id`, e.g.
    43  
    44  ```
    45  $ terraform import aws_vpn_gateway.testvpngateway vgw-9a4cacf3
    46  ```