cloudflare / terraform-provider-cloudflare

Cloudflare Terraform Provider
https://registry.terraform.io/providers/cloudflare/cloudflare
Mozilla Public License 2.0
801 stars 618 forks source link

cloudflare_record : Automatic Quotation Marks for TXT DNS Records #4650

Open sdjelassimoussa opened 5 days ago

sdjelassimoussa commented 5 days ago

Confirmation

Terraform and Cloudflare provider version

Terraform v1.9.8 on darwin_arm64

Affected resource(s)

cloudflare_record

Terraform configuration files

#Actual
resource "cloudflare_record" "example" {
  zone_id = module.cf-config-base-so-sandbox-org.zone_id
  name    = "terraform-test"
  content = "terraform.so-sandbox.org"
  type    = "TXT"
  ttl     = 1
}

#Workaround
resource "cloudflare_record" "example" {
  zone_id = module.cf-config-base-so-sandbox-org.zone_id
  name    = "terraform-test"
  content = "\"terraform.so-sandbox.org\""
  type    = "TXT"
  ttl     = 1
}

Link to debug output

Probably not necessary here

Panic output

No response

Expected output

Capture d’écran 2024-11-22 à 14 19 18

Actual output

Capture d’écran 2024-11-22 à 14 17 29

Steps to reproduce

Steps to Reproduce

  1. Create a Cloudflare DNS TXT Record using Terraform:

    resource "cloudflare_record" "example" {
     zone_id = module.cf-config-base-so-sandbox-org.zone_id
     name    = "terraform-test"
     content = "terraform.so-sandbox.org"
     type    = "TXT"
     ttl     = 1
    }
    2. **Apply the Terraform configuration:**
    ```hcl
    terraform apply
  2. Check the created DNS record in Cloudflare:

    • Navigate to the DNS settings for your zone in the Cloudflare dashboard.
    • Locate the terraform-test TXT record.

Additional factoids

No response

References

No response

github-actions[bot] commented 5 days ago

Thank you for reporting this issue! For maintainers to dig into issues it is required that all issues include the entirety of TF_LOG=DEBUG output to be provided. The only parts that should be redacted are your user credentials in the X-Auth-Key, X-Auth-Email and Authorization HTTP headers. Details such as zone or account identifiers are not considered sensitive but can be redacted if you are very cautious. This log file provides additional context from Terraform, the provider and the Cloudflare API that helps in debugging issues. Without it, maintainers are very limited in what they can do and may hamper diagnosis efforts.

This issue has been marked with triage/needs-information and is unlikely to receive maintainer attention until the log file is provided making this a complete bug report.

github-actions[bot] commented 5 days ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue