Skip to content

Instantly share code, notes, and snippets.

@rossedman
Created September 6, 2022 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rossedman/e39f05f087b7100f06154c31835b3f5f to your computer and use it in GitHub Desktop.
Save rossedman/e39f05f087b7100f06154c31835b3f5f to your computer and use it in GitHub Desktop.
Taint All Terraform Module Resources
# 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