How do I destroy a module that has errors? #144
Answered
by
yorinasub17
yorinasub17
asked this question in
Help
-
|
I am trying to destroy a module, and am running into an error that is preventing me from destroy that appears to be a code issue. For example: Changing the |
Beta Was this translation helpful? Give feedback.
Answered by
yorinasub17
Jan 18, 2022
Replies: 2 comments
This comment has been hidden.
This comment has been hidden.
-
|
In some cases, you can avoid all code errors in
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yorinasub17
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In some cases, you can avoid all code errors in
terraformand trigger adestroyof all resources by creating a newemptymodule:emptywith a singlemain.tffile that is empty.emptymodule points to the state file of the module you are trying to destroyterragrunt, update theterraform.sourceattribute interragrunt.hclto point to the empty module.terraform, update theemptymodule to have aterraform.backendconfig that points to the state file of your original module.terragrunt init && terragrunt plan(orterraform init && terraform plan). If you don't have nested providers (providerblocks nested in…