I am facing an error to execute the command
terraform destroy
after terraform state rm resourcesName
.
I wanted to skip the deletion of a few resources which are present in terraform state file, so I removed the entry of resources from the state file, using terraform state rm resourceName
then tried the command terraform init
and terraform destroy
. The terraform destroy
failed with an error referring to the removed resource. Am I missing anything in this flow?