Skip to content

cloudflare_certificate_pack validation_errors / validation_records TF 5.14.0 #6527

@bunnybilou

Description

@bunnybilou

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

TF plan on latest provider version (5.14.0) is showing some diff on cloudflare_certificate_pack ressource.

Applying the changes is not working.

I also tried to reimport the resource but it completely broke the state because it tries to recreate the ressource after importing it.

Affected resource(s)

cloudflare_certificate_pack

Terraform configuration files

resource "cloudflare_certificate_pack" "subdomains" {
  zone_id               = data.cloudflare_zone.this.zone_id
  type                  = "advanced"
  hosts                 = local.certificat_hosts
  validation_method     = "txt"
  validity_days         = 90
  certificate_authority = "google"
  cloudflare_branding   = false

  lifecycle {
    create_before_destroy = true
  }
}

Link to debug output

no output

Panic output

No response

Expected output

No error

Actual output

module.zone_settings.module.cloudflare_zone_settings.cloudflare_certificate_pack.subdomains: Modifying... [id=xxx-xxx-xxx-xxx-xxx]

│ Error: Provider produced inconsistent result after apply

│ When applying changes to module.zone_settings.module.cloudflare_zone_settings.cloudflare_certificate_pack.subdomains, provider "provider["registry.terraform.io/cloudflare/cloudflare"]" produced an unexpected new value: .certificates[0].uploaded_on: was cty.StringVal("2025-12-08T08:50:18Z"), but now
│ cty.StringVal("2025-12-08T08:51:18Z").

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.


│ Error: Provider produced inconsistent result after apply

│ When applying changes to module.zone_settings.module.cloudflare_zone_settings.cloudflare_certificate_pack.subdomains, provider "provider["registry.terraform.io/cloudflare/cloudflare"]" produced an unexpected new value: .certificates[1].uploaded_on: was cty.StringVal("2025-12-08T08:50:18Z"), but now
│ cty.StringVal("2025-12-08T08:51:18Z").

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Steps to reproduce

Use the latest provider version (5.14.0) on cloudflare_certificate_pack ressource

Additional factoids

No response

References

The following issue is talking about import not working on cloudflare_certificate_pack #6376

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.version/5Categorizes issue or PR as related to version 5 of the provider.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions