cloudflare_regional_hostname fail to update #2856
Labels
kind/bug
Categorizes issue or PR as related to a bug.
service/addressing
Categorizes issue or PR as related to the Addressing service.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
triage/debug-log-attached
Indicates an issue or PR has a complete Terraform debug log.
workflow/synced
Confirmation
Terraform and Cloudflare provider version
Affected resource(s)
Terraform configuration files
Link to debug output
https://gist.github.com/PierreBart/1082528e73e04faca66d7ce4c55dd0fd
Panic output
No response
Expected output
Updating the
cloudflare_record.test.name
attribute, and applying the new configuration recreates the resource and updates thecloudflare_record.cloudflare_regional_hostname
resource in place.Actual output
The apply command fails with error:
Steps to reproduce
cloudflare_record.test.name
value;Additional factoids
It seems that after the record is deleted, the
regional_hostname
resource is deleted from Cloudflare as well. However, the resource is still in the state and terraform tries to retrieve it but Cloudflare query fails with error 1000.Subsequent
terraform plan
commands also fail with the same error.From the API documentation, it seems that we can only patch the
region
attribute, not thehostname
: https://developers.cloudflare.com/data-localization/regional-services/get-started/I guess that the update of the
hostname
attribute should require the replacement of the resource rather than an in-place update.References
No response
The text was updated successfully, but these errors were encountered: