terraform-provider-equinix icon indicating copy to clipboard operation
terraform-provider-equinix copied to clipboard

Add support for device VPNs

Open mikouaj opened this issue 3 years ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description

Add VPN resource to manage lifecycle of Network Edge VPN service.

The VPN service allows the definition of one or more VPN tunnels per device. Each site-to-site tunnel includes an IPsec tunnel with 256-bit encryption and can reach many remote sites or locations. Typically, the tunnel is over the interface toward the public internet but can be used in any combination.

Underlaying Equinix API is available and documented: https://developer.equinix.com/catalog/network-edgev1#tag/VPN

New or Affected Resource(s)

  • equinix_network_vpn

Potential Terraform Configuration

resource "equinix_network_vpn" "test" {
  site_name = "test"
  device_id = equinix_network_vpn.test.id
  name = "test-vpn-pri"
  peer_ip_address = "12.13.14.55"
  psk = "secret"
  bgp {
    local_asn = 12145
    remote_ asn = 24332
    local_ip_address = "10.2.123.1/27"
    remote_ip_address = "172.16.2.23"
    authentication_key = "secret" #optional
  }
  secondary {
    name = "test-vpn-sec"
    peer_ip_address = "12.13.14.55"
    psk = "secret"
    bgp {
      local_asn = 12145
      remote_ asn = 24334
      local_ip_address = "10.2.123.1/27"
      remote_ip_address = "172.16.2.64"
      authentication_key = "secret" #optional
    }
  }
}

References

N/A

mikouaj avatar Mar 30 '21 10:03 mikouaj