Terraform provider 5.3.0 zero trust clouflared config not working

For Workers & Pages, what is the name of the domain?

devaneckjes.nl

What is the error number?

Inappropriate value for attribute “config”: a number is required.

What is the error message?

Inappropriate value for attribute “config”: a number is required.

What is the issue or error you’re encountering

Inappropriate value for attribute “config”: a number is required.

What steps have you taken to resolve the issue?

Attempted previous versions of the Cloudflare provider to resolved the issue, no luck. No documentation on this either.

What are the steps to reproduce the issue?

Create a cloudflare_zero_trust_tunnel_cloudflared_config resource using the 5.3.0 cloudflare provider.
I follow the documentation here: Terraform Registry

I am using the following code (redacted):

resource “cloudflare_zero_trust_tunnel_cloudflared_config” “Tunnel_config1” {
account_id = var.account_id
tunnel_id = cloudflare_zero_trust_tunnel_cloudflared.Tunnel1.id
config = {
ingress = [
{
hostname = “”
path = “”
service = “”
},
{
hostname = “”
path = “”
service = “”
origin_request = {
no_tls_verify = true
}
},
{
hostname = “”
path = “”
service = “”
},
{
hostname = “”
path = “”
service = “”
origin_request = {
origin_server_name = “.b.com"
}
},
{
hostname = “”
path = “”
service = “”
origin_request = {
origin_server_name = "
.b.com”
}
},
{
hostname = “”
path = “”
service = “”
origin_request = {
no_tls_verify = true
}
},
{
hostname = “”
path = “”
service = “”
},
{
hostname = “”
path = “”
service = “”
},
{
hostname = “”
path = “”
service = “”
origin_request = {
no_tls_verify = true
}
},
{
hostname = “”
path = “”
service = “”
},
{
hostname = “”
path = “”
service = “”
},
{
hostname = “”
path = “”
service = “”
},
{
service = “http_status:404”
}
]
origin_request = {
connect_timeout = “1m0s”
tls_timeout = “1m0s”
tcp_keep_alive = “30s”
no_happy_eyeballs = false
keep_alive_connections = 1024
keep_alive_timeout = “1m0s”
http_host_header = “”
origin_server_name = “”
}
}
}

When I run this, i get the error:
│ Error: Incorrect attribute value type

│ on cloudflare.tf line 271, in resource “cloudflare_zero_trust_tunnel_cloudflared_config” “Tunnel_config1”:

Inappropriate value for attribute “config”: a number is required.

This error indicates a number is required as a value for the config attribute, but that doesn’t make any sense, since all the documentation is telling me I need to provide an object.
Is there anyone out there who experience the same?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.