» aviatrix_geo_vpn

The aviatrix_geo_vpn resource enables and manages the Aviatrix Geo VPN feature.

» Example Usage

# Create an Aviatrix Geo VPN
resource "aviatrix_geo_vpn" "test_geo_vpn" {
  cloud_type    = 1
  account_name  = "devops-aws"
  service_name  = "vpn"
  domain_name   = "aviatrix.live"
  elb_dns_names = [
    "elb-test1-497f5e89.elb.us-west-1.amazonaws.com",
    "elb-test2-974f895e.elb.us-east-2.amazonaws.com",
  ]
}

» Argument Reference

The following arguments are supported:

» Required

  • cloud_type - (Required) Type of cloud service provider, requires an integer value. Currently only AWS(1) is supported.
  • account_name - (Required) This parameter represents the name of a Cloud-Account in Aviatrix controller.
  • domain_name - (Required) The hosted domain name. It must be hosted by AWS Route53 or Azure DNS in the selected account.
  • service_name - (Required) The hostname that users will connect to. A DNS record will be created for this name in the specified domain name.
  • elb_dns_names - (Required) List of ELB names to attach to this Geo VPN name.

» Import

geo_vpn can be imported using the service_name and domain_name, e.g.

$ terraform import aviatrix_geo_vpn.test service_name~domain_name