Confirmation
Terraform and Cloudflare provider version
- OpenTofu version: (1.11.6)
- Cloudflare provider: v4.52.5 → v5.19.0
Affected resource(s)
cloudflare_dns_record
Terraform configuration files
resource "cloudflare_dns_record" "xyz" {
zone_id = var.cf_zone_id
name = ""
content = ""
type = "CNAME"
proxied = true
ttl = 1
}
Link to debug output
Panic output
no schema available for cloudflare_record.xyz while reading state; this is a bug in OpenTofu and should be reported
Expected output
Automatic migration should be sucessfull.
Actual output
see Panic
Steps to reproduce
Steps to Reproduce
- Have a resource of type
cloudflare_record managed in state (Cloudflare provider v4)
- Upgrade to Cloudflare provider v5 (which renames it to
cloudflare_dns_record)
- Add a
moved{ from = cloudflare_record.xyz}
- Run
terraform plan
Additional factoids
Only known workaround that I've found is removing from the tfstate completely and re-importing by ID - which is quite the hassle.
References
No response
Confirmation
Terraform and Cloudflare provider version
Affected resource(s)
cloudflare_dns_record
Terraform configuration files
Link to debug output
Panic output
no schema available for cloudflare_record.xyz while reading state; this is a bug in OpenTofu and should be reported
Expected output
Automatic migration should be sucessfull.
Actual output
see Panic
Steps to reproduce
Steps to Reproduce
cloudflare_recordmanaged in state (Cloudflare provider v4)cloudflare_dns_record)moved{ from = cloudflare_record.xyz}terraform planAdditional factoids
Only known workaround that I've found is removing from the tfstate completely and re-importing by ID - which is quite the hassle.
References
No response