0

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?

David Buck
  • 3,752
  • 35
  • 31
  • 35
Inder malviya
  • 149
  • 1
  • 12

0 Answers0