Provides a resource, that manages GRE tunnels for Magic Transit.
resource "cloudflare_gre_tunnel" "example" {
account_id = "f037e56e89293a057740de681ac9abbe"
name = "GRE_1"
customer_gre_endpoint = "203.0.113.1"
cloudflare_gre_endpoint = "203.0.113.2"
interface_address = "192.0.2.0/31"
description = "Tunnel for ISP X"
ttl = 64
mtu = 1476
health_check_enabled = true
health_check_target = "203.0.113.1"
health_check_type = "reply"
}
cloudflare_gre_endpoint
(String) The IP address assigned to the Cloudflare side of the GRE tunnel.customer_gre_endpoint
(String) The IP address assigned to the customer side of the GRE tunnel.interface_address
(String) 31-bit prefix (/31 in CIDR notation) supporting 2 hosts, one for each side of the tunnel.name
(String) Name of the GRE tunnel.account_id
(String) The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.description
(String) Description of the GRE tunnel intent.health_check_enabled
(Boolean) Specifies if ICMP tunnel health checks are enabled.health_check_target
(String) The IP address of the customer endpoint that will receive tunnel health checks.health_check_type
(String) Specifies the ICMP echo type for the health check. Available values: request
, reply
.mtu
(Number) Maximum Transmission Unit (MTU) in bytes for the GRE tunnel.ttl
(Number) Time To Live (TTL) in number of hops of the GRE tunnel.id
(String) The ID of this resource.Import is supported using the following syntax:
$ terraform import cloudflare_gre_tunnel.example <account_id>/<tunnel_id>