cloudflare_ipsec_tunnel (Resource)

Provides a resource, that manages IPsec tunnels for Magic Transit.

Example Usage

resource "cloudflare_ipsec_tunnel" "example" {
  account_id           = "f037e56e89293a057740de681ac9abbe"
  name                 = "IPsec_1"
  customer_endpoint    = "203.0.113.1"
  cloudflare_endpoint  = "203.0.113.1"
  interface_address    = "192.0.2.0/31"
  description          = "Tunnel for ISP X"
  health_check_enabled = true
  health_check_target  = "203.0.113.1"
  health_check_type    = "reply"
  psk                  = "asdf12341234"
  allow_null_cipher    = false
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

$ terraform import cloudflare_ipsec_tunnel.example <account_id>/<tunnel_id>