Skip to content

cloudflare_custom_hostname resource missing wait_for_ssl_pending_validation attribute replacement #5538

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

Open
3 tasks done
TigerC10 opened this issue Apr 29, 2025 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@TigerC10
Copy link

Confirmation

  • This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
  • I have searched the issue tracker and my issue isn't already found.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

Terraform version: 1.11.3
Cloudflare provider version: v5.0.0

Affected resource(s)

cloudflare_custom_hostname

Terraform configuration files

resource "cloudflare_custom_hostname" "example_custom_hostname" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  hostname = "app.example.com"
  custom_origin_server: "custom.example-origin.com"
  custom_origin_sni: ":request_host_header:"
  ssl = {
    certificate_authority = "google"
    method = "txt"
    settings = {
      early_hints = "on"
      http2 = "on"
      min_tls_version = "1.2"
      tls_1_3 = "on"
    }
    type = "dv"
    wildcard = true
  }
  wait_for_ssl_pending_validation = true
}

Link to debug output

N/A

Panic output

No response

Expected output

Expect to wait for custom hostname to be in pending state so that other resources that depend on it (for example, creating DNS records for TXT/CNAME validation) can create the required values.

Actual output

Not sure, the default value of the wait_for_ssl_pending_validation was false, which would not wait for custom hostname to finish being created and put into pending state).

Steps to reproduce

😩

Additional factoids

At the very least, can we clarify what should be done about this (if anything) in the migration guide? Does the new API return the proper validation records without needing to get into a pending state? Because that's the only reason this wait seemed necessary.

References

https://developers.cloudflare.com/api/resources/custom_hostnames/methods/create/

@TigerC10 TigerC10 added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

1 participant