2015-03-05 07:27:57 +01:00
|
|
|
---
|
|
|
|
layout: "aws"
|
|
|
|
page_title: "AWS: aws_vpn_gateway"
|
|
|
|
sidebar_current: "docs-aws-resource-vpn-gateway"
|
|
|
|
description: |-
|
|
|
|
Provides a resource to create a VPC VPN Gateway.
|
|
|
|
---
|
|
|
|
|
|
|
|
# aws\_vpn\_gateway
|
|
|
|
|
|
|
|
Provides a resource to create a VPC VPN Gateway.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2017-04-17 12:17:54 +02:00
|
|
|
```hcl
|
2015-03-05 07:27:57 +01:00
|
|
|
resource "aws_vpn_gateway" "vpn_gw" {
|
2017-02-18 23:48:50 +01:00
|
|
|
vpc_id = "${aws_vpc.main.id}"
|
2015-03-05 07:27:57 +01:00
|
|
|
|
2017-02-18 23:48:50 +01:00
|
|
|
tags {
|
|
|
|
Name = "main"
|
|
|
|
}
|
2015-03-05 07:27:57 +01:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
2015-04-30 16:37:28 +02:00
|
|
|
* `vpc_id` - (Optional) The VPC ID to create in.
|
2015-03-05 07:27:57 +01:00
|
|
|
* `availability_zone` - (Optional) The Availability Zone for the virtual private gateway.
|
|
|
|
* `tags` - (Optional) A mapping of tags to assign to the resource.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
|
|
|
* `id` - The ID of the VPN Gateway.
|
|
|
|
|
2016-07-19 18:22:30 +02:00
|
|
|
|
|
|
|
## Import
|
|
|
|
|
2017-02-18 23:48:50 +01:00
|
|
|
VPN Gateways can be imported using the `vpn gateway id`, e.g.
|
2016-07-19 18:22:30 +02:00
|
|
|
|
|
|
|
```
|
2016-07-21 00:28:59 +02:00
|
|
|
$ terraform import aws_vpn_gateway.testvpngateway vgw-9a4cacf3
|
2016-07-19 18:22:30 +02:00
|
|
|
```
|