openstack_vpnaas_site_connection_v2

Manages a V2 Neutron IPSec site connection resource within OpenStack.

Example Usage

resource "openstack_vpnaas_site_connection_v2" "conn_1" {
  name              = "connection_1"
  ikepolicy_id      = openstack_vpnaas_ike_policy_v2.policy_2.id
  ipsecpolicy_id    = openstack_vpnaas_ipsec_policy_v2.policy_1.id
  vpnservice_id     = openstack_vpnaas_service_v2.service_1.id
  psk               = "secret"
  peer_address      = "192.168.10.1"
  local_ep_group_id = openstack_vpnaas_endpoint_group_v2.group_2.id
  peer_ep_group_id  = openstack_vpnaas_endpoint_group_v2.group_1.id
  dpd {
    action   = "restart"
    timeout  = 42
    interval = 21
  }
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Site Connections can be imported using the id, e.g.

$ terraform import openstack_vpnaas_site_connection_v2.conn_1 832cb7f3-59fe-40cf-8f64-8350ffc03272