What is the correct behavior of the provider when resource was deleted manually?

I understand every provider is different but in the nutshell what is the most terraform like behavioral?

  • Fail on read and let end user handle the state clean up
  • Catch the error and recreate resource(I mean set id to null so TF would have that resource in the plan)

Hi @andrii-glukhyi,

The standard behavior is that providers return a null value during ReadResource, so that Terraform can detect the resource is missing and plan to recreate it.

1 Like

Thanks for the reply @jbardin