Closed grounded042 closed 3 years ago
Running into this too, it looks like translating from zero_rtt
to 0rtt
isn't happening, and instead the wrong setting name is getting passed to cf api. I'm getting this with tf v0.14.7, provider version https://github.com/hashicorp/terraform-provider-cloudflare/commit/5fbbbf33eb579b33423409f1fb177a05e21f0718
@jacobbednarz Any ideas here?
i've pushed up a fix for this one at #1175. please pull it down and confirm it fixes your use case and i'll look to get it in the next release.
Thanks for the quick fix!
do you have any estimates about when will you cut a new release that would include this fix?
We do ~ roughly monthly releases and the last was just on 10 days ago. If you'd like to run the latest version, you can build and use it locally (including in your choice of CI/CD provider). See https://github.com/cloudflare/terraform-provider-cloudflare#building- the-provider
Confirmation
Terraform and Cloudflare provider version
Affected resource(s)
cloudflare_zone_settings_override
Terraform configuration files
Debug output
Panic output
No response
Expected output
Destroy complete! Resources: 2 destroyed.
Actual output
Steps to reproduce
terraform apply
terraform destroy
-> the error will occur.Additional factoids
Note that if you want to reproduce this after doing a delete of the zone you have to use a new zone name as it seems to cache some setting behind the scenes in Cloudflare.
For example, I'll do:
terraform apply
terraform destroy
-> the error will occur.terraform state rm cloudflare_zone_settings_override.testing_example_com_settings
terraform destroy
-> it worksterraform apply
terraform destroy
-> it worksterraform apply
terraform destroy
-> the error will occur.References
I think it is related to this note: https://github.com/cloudflare/terraform-provider-cloudflare/blob/9067dba5d14ae72e037a58c68b59bb08bef1f63d/cloudflare/resource_cloudflare_zone_settings_override.go#L624 which seems to be introduced here: https://github.com/cloudflare/terraform-provider-cloudflare/commit/b64c0c2139f66949ab75917c410db25b0e982a79