Hi team
I am trying to destroy on of my resource created, when i do that directly like by deleting code, it is giving some error. I am following single module structure.
If i delete the resource in module, it is throwing something like this
This occurs when a provider configuration is removed while objects created by that provider still exist in the state
i have read documentation which says if you want to delete any resource, just comment it from module file .
tried various things, but nothing working.
Provider we have
terraform {
required_version = “>= 1.7.0”
required_providers {
newrelic = {
source = “newrelic/newrelic”
version = “3.20.2”
}
}
}