Skip to content

cloudflare_total_tls resource gets into a bad state #6460

@rickardp

Description

@rickardp

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

I have the following resource

resource "cloudflare_total_tls" "cluster_zone_total_tls" {
  zone_id = cloudflare_zone.cluster_zone.id
  enabled = true
}

when trying to deploy, I see

POST "https://api.cloudflare.com/client/v4/zones/.../acm/total_tls": 400 Bad Request {"success":false,"errors":[{"code":1467,"message":"No state
between current settings and new settings has changed."}],"messages":[]}

I've tried to remove and reimport the resource from state, but I still see the error above

Affected resource(s)

cloudflare_total_tls

Terraform configuration files

resource "cloudflare_total_tls" "cluster_zone_total_tls" {
  zone_id = cloudflare_zone.cluster_zone.id
  enabled = true
}

Link to debug output

ci/cd pipeline

Panic output

No response

Expected output

success

Actual output

POST "https://api.cloudflare.com/client/v4/zones/.../acm/total_tls": 400 Bad Request {"success":false,"errors":[{"code":1467,"message":"No state
between current settings and new settings has changed."}],"messages":[]}

Steps to reproduce

(I don't know how I got the error in the first place , but below is a sure way to get it)

  1. Create cloudflare_total_tls resource
  2. `terraform state rm ...
  3. terraform import ...
  4. terraform apply ...
  5. Observe above error

Additional factoids

No response

References

No response

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