Provider panic when attempting to import cloudflare_dns_record #4916
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
triage/debug-log-attached
Indicates an issue or PR has a complete Terraform debug log.
Confirmation
Terraform and Cloudflare provider version
Affected resource(s)
The above resource is the one I'm reproducing the issue consistently with. However, it may be much more widespread than that (I encountered a similar crash when attempting to refresh a cloudflare_api_token_permission_groups datasource)
Terraform configuration files
Link to debug output
https://gist.github.com/toadjaune/0b5482c1ed049e8bdae28ee4cce3fb6d
Panic output
Expected output
A successful resource import
Actual output
Same as panic output above
Steps to reproduce
terraform apply
to create the entryterraform state show cloudflare_dns_record.test
to display the entry detailsterraform state rm cloudflare_dns_record.test
to remove the entry from the state but not from cloudflareterraform import cloudflare_dns_record.test <zone_id>/<record_id>
Additional factoids
Provider version 4.50 is unaffected by this issue (well, the cloudflare_record resource there, since it changed name in the meantime), this seems to be a regression introduced by the major provider rewrite.
I'm unsure how close to stable
rc1
is meant to be, but I'm assuming this issue ought to be a blocker for stable release.References
No response
The text was updated successfully, but these errors were encountered: