logdna / terraform-provider-logdna

Terraform provider to simplify creation of views, preset alerts and other resources in LogDNA!
https://registry.terraform.io/providers/logdna/logdna/latest
MIT License
11 stars 12 forks source link

Support handling 404s when a resource has been deleted #54

Closed bstoutenburgh closed 1 year ago

bstoutenburgh commented 2 years ago

We've had several instances of a human user deleting views that are managed by terraform, which the provider does not handle well.

Error: Cannot read the remote view resource

  with module.logdna-views-prod.logdna_view.errors_in_satellite,
  on ../../modules/logdna_prod/main.tf line 822, in resource "logdna_view" "errors_in_satellite":
 822: resource "logdna_view" "errors_in_satellite" {

GET https://REDACTED_HOSTNAME/v1/config/view/REDACTED_ID, status 404 NOT OK! {"error":"Resource Not Found","code":"NotFound","status":"error"}

Typically providers see this as needing to recreate the resource.

gjanco commented 1 year ago

Will be tracked by #53

gjanco commented 1 year ago

Duplicate of #53