[X] This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
[X] I have searched the issue tracker and my issue isn't already found.
[X] I have replicated my issue using the latest version of the provider and it is still present.
Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Confirmation
Terraform and Cloudflare provider version
Terraform v1.9.5 provider "5.0.0-alpha1"
Affected resource(s)
cloudflare_dns_record
Terraform configuration files
Link to debug output
https://aoeuaoeuaoeuaoeuu.blob.core.windows.net/temp/log.txt
Panic output
No response
Expected output
The provider should detect the resource is missing and add it. It should not crash.
Actual output
│ Error: failed to make http request │ │ with cloudflare_dns_record.all_records["frontend"], │ on dns.tf line 52, in resource "cloudflare_dns_record" "all_records": │ 52: resource "cloudflare_dns_record" "all_records" { │ │ GET │ "https://api.cloudflare.com/client/v4/zones/be632ff0a3fc2321688003bbcd0e227f/dns_records/480f7f51fd04e5249631f35a1ed2439d": │ 404 Not Found {"result":null,"success":false,"errors":[{"code":81044,"message":"Record does not
│ exist."}],"messages":[]}
Steps to reproduce
Additional factoids
The problem is that I have to modify my .tfstate file manually to resolve this.
References
No response