Created
September 6, 2022 18:55
-
-
Save rossedman/e39f05f087b7100f06154c31835b3f5f to your computer and use it in GitHub Desktop.
Taint All Terraform Module Resources
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this will find all resources listed under a module and then parse | |
# the output to xargs and taint each resource that lives under the module | |
terraform state list module.eks | xargs -d '\n' -n1 terraform taint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment