Tunnels
TunnelsCloudflared
resource cloudflare_zero_trust_tunnel_cloudflared
optional
computed
Timestamp of when the tunnel established at least one connection to Cloudflare's edge. If null, the tunnel is inactive.
Timestamp of when the tunnel became inactive (no connections to Cloudflare's edge). If null, the tunnel is active.
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
If true, the tunnel can be configured remotely from the Zero Trust dashboard. If false, the tunnel must be configured locally on the origin machine.
The status of the tunnel. Valid values are inactive (tunnel has never been run), degraded (tunnel is active and able to serve traffic but in an unhealthy state), healthy (tunnel is active and able to serve traffic), or down (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
cloudflare_zero_trust_tunnel_cloudflared
resource "cloudflare_zero_trust_tunnel_cloudflared" "example_zero_trust_tunnel_cloudflared" {
account_id = "699d98642c564d2e855e9661899b7252"
name = "blog"
config_src = "cloudflare"
tunnel_secret = "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg="
}
data cloudflare_zero_trust_tunnel_cloudflared
computed
Indicates if this is a locally or remotely configured tunnel. If local, manage the tunnel using a YAML file on the origin machine. If cloudflare, manage the tunnel on the Zero Trust dashboard.
Timestamp of when the tunnel established at least one connection to Cloudflare's edge. If null, the tunnel is inactive.
Timestamp of when the tunnel became inactive (no connections to Cloudflare's edge). If null, the tunnel is active.
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
If true, the tunnel can be configured remotely from the Zero Trust dashboard. If false, the tunnel must be configured locally on the origin machine.
The status of the tunnel. Valid values are inactive (tunnel has never been run), degraded (tunnel is active and able to serve traffic but in an unhealthy state), healthy (tunnel is active and able to serve traffic), or down (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
cloudflare_zero_trust_tunnel_cloudflared
data "cloudflare_zero_trust_tunnel_cloudflared" "example_zero_trust_tunnel_cloudflared" {
account_id = "699d98642c564d2e855e9661899b7252"
tunnel_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}
data cloudflare_zero_trust_tunnel_cloudflareds
optional
If provided, include only resources that were created (and not deleted) before this time. URL encoded.
If true, only include deleted tunnels. If false, exclude deleted tunnels. If empty, all tunnels will be included.
The status of the tunnel. Valid values are inactive (tunnel has never been run), degraded (tunnel is active and able to serve traffic but in an unhealthy state), healthy (tunnel is active and able to serve traffic), or down (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
cloudflare_zero_trust_tunnel_cloudflareds
data "cloudflare_zero_trust_tunnel_cloudflareds" "example_zero_trust_tunnel_cloudflareds" {
account_id = "699d98642c564d2e855e9661899b7252"
exclude_prefix = "vpc1-"
existed_at = "2019-10-12T07%3A20%3A50.52Z"
include_prefix = "vpc1-"
is_deleted = true
name = "blog"
status = "healthy"
uuid = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
was_active_at = "2009-11-10T23:00:00Z"
was_inactive_at = "2009-11-10T23:00:00Z"
}
TunnelsCloudflaredConfigurations
resource cloudflare_zero_trust_tunnel_cloudflared_config
cloudflare_zero_trust_tunnel_cloudflared_config
resource "cloudflare_zero_trust_tunnel_cloudflared_config" "example_zero_trust_tunnel_cloudflared_config" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
tunnel_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
config = {
ingress = [{
hostname = "tunnel.example.com"
service = "https://localhost:8001"
origin_request = {
access = {
aud_tag = ["string"]
team_name = "zero-trust-organization-name"
required = false
}
ca_pool = "caPool"
connect_timeout = 10
disable_chunked_encoding = true
http2_origin = true
http_host_header = "httpHostHeader"
keep_alive_connections = 100
keep_alive_timeout = 90
match_sn_ito_host = false
no_happy_eyeballs = false
no_tls_verify = false
origin_server_name = "originServerName"
proxy_type = "proxyType"
tcp_keep_alive = 30
tls_timeout = 10
}
path = "subpath"
}]
origin_request = {
access = {
aud_tag = ["string"]
team_name = "zero-trust-organization-name"
required = false
}
ca_pool = "caPool"
connect_timeout = 10
disable_chunked_encoding = true
http2_origin = true
http_host_header = "httpHostHeader"
keep_alive_connections = 100
keep_alive_timeout = 90
match_sn_ito_host = false
no_happy_eyeballs = false
no_tls_verify = false
origin_server_name = "originServerName"
proxy_type = "proxyType"
tcp_keep_alive = 30
tls_timeout = 10
}
}
}
data cloudflare_zero_trust_tunnel_cloudflared_config
computed
cloudflare_zero_trust_tunnel_cloudflared_config
data "cloudflare_zero_trust_tunnel_cloudflared_config" "example_zero_trust_tunnel_cloudflared_config" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
tunnel_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}
TunnelsCloudflaredToken
data cloudflare_zero_trust_tunnel_cloudflared_token
cloudflare_zero_trust_tunnel_cloudflared_token
data "cloudflare_zero_trust_tunnel_cloudflared_token" "example_zero_trust_tunnel_cloudflared_token" {
account_id = "699d98642c564d2e855e9661899b7252"
tunnel_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}
TunnelsWARP Connector
resource cloudflare_zero_trust_tunnel_warp_connector
optional
computed
Timestamp of when the tunnel established at least one connection to Cloudflare's edge. If null, the tunnel is inactive.
Timestamp of when the tunnel became inactive (no connections to Cloudflare's edge). If null, the tunnel is active.
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
The status of the tunnel. Valid values are inactive (tunnel has never been run), degraded (tunnel is active and able to serve traffic but in an unhealthy state), healthy (tunnel is active and able to serve traffic), or down (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
cloudflare_zero_trust_tunnel_warp_connector
resource "cloudflare_zero_trust_tunnel_warp_connector" "example_zero_trust_tunnel_warp_connector" {
account_id = "699d98642c564d2e855e9661899b7252"
name = "blog"
ha = true
}
data cloudflare_zero_trust_tunnel_warp_connector
computed
Timestamp of when the tunnel established at least one connection to Cloudflare's edge. If null, the tunnel is inactive.
Timestamp of when the tunnel became inactive (no connections to Cloudflare's edge). If null, the tunnel is active.
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
The status of the tunnel. Valid values are inactive (tunnel has never been run), degraded (tunnel is active and able to serve traffic but in an unhealthy state), healthy (tunnel is active and able to serve traffic), or down (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
cloudflare_zero_trust_tunnel_warp_connector
data "cloudflare_zero_trust_tunnel_warp_connector" "example_zero_trust_tunnel_warp_connector" {
account_id = "699d98642c564d2e855e9661899b7252"
tunnel_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}
data cloudflare_zero_trust_tunnel_warp_connectors
optional
If provided, include only resources that were created (and not deleted) before this time. URL encoded.
If true, only include deleted tunnels. If false, exclude deleted tunnels. If empty, all tunnels will be included.
The status of the tunnel. Valid values are inactive (tunnel has never been run), degraded (tunnel is active and able to serve traffic but in an unhealthy state), healthy (tunnel is active and able to serve traffic), or down (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
cloudflare_zero_trust_tunnel_warp_connectors
data "cloudflare_zero_trust_tunnel_warp_connectors" "example_zero_trust_tunnel_warp_connectors" {
account_id = "699d98642c564d2e855e9661899b7252"
exclude_prefix = "vpc1-"
existed_at = "2019-10-12T07%3A20%3A50.52Z"
include_prefix = "vpc1-"
is_deleted = true
name = "blog"
status = "healthy"
uuid = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
was_active_at = "2009-11-10T23:00:00Z"
was_inactive_at = "2009-11-10T23:00:00Z"
}
TunnelsWARP ConnectorToken
data cloudflare_zero_trust_tunnel_warp_connector_token
cloudflare_zero_trust_tunnel_warp_connector_token
data "cloudflare_zero_trust_tunnel_warp_connector_token" "example_zero_trust_tunnel_warp_connector_token" {
account_id = "699d98642c564d2e855e9661899b7252"
tunnel_id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"
}