Removing a DNS record outside terraform breaks #4581
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
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
The text was updated successfully, but these errors were encountered: