-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cloudflare_zero_trust_tunnel_cloudflared_config doesn't create DNS records #4823
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Thank you for reporting this issue! For maintainers to dig into issues it is required that all issues include the entirety of This issue has been marked with |
this isn't a bug but intentional behaviour. the terraform provider doesn't create resources it doesn't manage. if you have a look in the UI, there is an additional API call made for the DNS record. if you'd like to emulate that same behaviour, you can chain a DNS record resource into your workflow. |
Ah gotcha. That's good to know. Perhaps it could be documented somewhere. How can I get the CNAME value? https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.1/docs/data-sources/zero_trust_tunnel_cloudflared resource doesn't expose its |
you need to reference the resource, not datasource - https://registry.terraform.io/providers/cloudflare/cloudflare/4.49.1/docs/resources/zero_trust_tunnel_cloudflared#cname-1 it is the |
It was created outside of the terraform...
Thanks for the hint. This worked beautifully. content = "${data.cloudflare_zero_trust_tunnel_cloudflared.my_tunnel.id}.cfargotunnel.com" It seems adding a direct attribute |
you're welcome to lodge a request with cloudflare support to send through to the service team for consideration. going forward, the only attributes are publicly documented ones via the OpenAPI schemas; not manually maintained ones like |
Confirmation
Terraform and Cloudflare provider version
Affected resource(s)
Terraform configuration files
Link to debug output
N/A
Panic output
No response
Expected output
CNAME DNS record created for the domain.
Actual output
Creating public hostname through Cloudflare console creates appropriate CNAME record. However,
cloudflare_zero_trust_tunnel_cloudflared_config
doesn't do the same.Steps to reproduce
Additional factoids
Also, tunnel configurations created this way doesn't allow changing the hostname. For example, after applying the above configuration, go to Cloudflare Zero Trust - Networks - Tunnels - Edit - Public Hostname - Edit - and try to change the Subdomain field.
You'll get an error
This subdomain should be editable. It seems something is definitely wrong here.
References
No response
The text was updated successfully, but these errors were encountered: