FEATURES PRICING ABOUT DOCS LOGIN

aws_vpn_gateway_attachment

Provides a Virtual Private Gateway attachment resource, allowing for an existing hardware VPN gateway to be attached and/or detached from a VPC.

-> Note: The aws_vpn_gateway resource can also automatically attach the Virtual Private Gateway it creates to an existing VPC by setting the vpc_id attribute accordingly.

Example Usage

resource "aws_vpc" "network" {
  cidr_block = "10.0.0.0/16"
}

resource "aws_vpn_gateway" "vpn" {
  tags {
    Name = "example-vpn-gateway"
  }
}

resource "aws_vpn_gateway_attachment" "vpn_attachment" {
  vpc_id = "${aws_vpc.network.id}"
  vpn_gateway_id = "${aws_vpn_gateway.vpn.id}"
}

See Virtual Private Cloud and Virtual Private Gateway user guides for more information.

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

This resource does not support importing.


See the source of this document at Terraform.io

REQUEST A DEMO