awscc_ec2_vpn_gateway (Resource)

Schema for EC2 VPN Gateway

Example Usage

First example - create basic VPN gateway

resource "awscc_ec2_vpn_gateway" "example_vpn_gateway" {
  type = "ipsec.1"
  tags = [
    {
      key   = "Name"
      value = "Example VPN Gateway"
    },
    {
      key   = "Modified By"
      value = "AWSCC"
    }
  ]
}

Second example - create VPN specifying the private Autonomous System Number (ASN) for the Amazon side of a BGP session

resource "awscc_ec2_vpn_gateway" "example_vpn_gateway" {
  type            = "ipsec.1"
  amazon_side_asn = 64512
  tags = [
    {
      key   = "Name"
      value = "Example VPN Gateway"
    },
    {
      key   = "Modified By"
      value = "AWSCC"
    }
  ]
}

Schema

Required

Optional

Read-Only

Nested Schema for tags

Required:

Import

Import is supported using the following syntax:

$ terraform import awscc_ec2_vpn_gateway.example <resource ID>