terraform-provider-cloudflare: Cannot Downgrade Enterprise Plan to Free Plan

Confirmation

  • My issue isn’t already found on the issue tracker.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

Terraform v1.1.6 on windows_amd64 provider registry.terraform.io/cloudflare/cloudflare v3.9.1

Tested with Provider 3.9.1, Terraform 1.0.7, 1.0.11, 1.1.6 and Provider 2.27.0, Terraform 1.0.7.

Affected resource(s)

cloudflare_zone

Terraform configuration files

resource "cloudflare_zone" "zone" {
    zone  = "test.domain.com"
    plan  = "enterprise"
}

Debug output

terraform.txt

Panic output

No response

Expected output

The zone plan should downgrade to free.

Actual output

The zone plan fails to downgrade. This is similar to issue #667, except this is a downgrade, not an upgrade.

Terraform waits/loops for 20 minutes and then produces the following error:

Error: plan ID change has not yet propagated

The console output looks like this …

module.cf_zone.module.cf_zone.cloudflare_zone.zone: Modifying... [id=redacted]
module.cf_zone.module.cf_zone.cloudflare_zone.zone: Still modifying... [id=redacted, 10s elapsed]
module.cf_zone.module.cf_zone.cloudflare_zone.zone: Still modifying... [id=redacted, 20s elapsed]
module.cf_zone.module.cf_zone.cloudflare_zone.zone: Still modifying... [id=redacted, 30s elapsed]
...
module.cf_zone.module.cf_zone.cloudflare_zone.zone: Still modifying... [id=redacted, 19m51s elapsed]
│ Error: plan ID change has not yet propagated

Steps to reproduce

Attempt to downgrade any enterprise plan to a free plan via terraform.

Additional factoids

This was submitted to Cloudflare support, but according to them the provider is not passing the correct API call to downgrade the zone, so I’m submitting it here.

Thanks!

References

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 16 (1 by maintainers)

Most upvoted comments

I also have the same problem.