Taint resource (force replace)
Mark resource for replacement on next apply
terraform taint module.eks.aws_instance.node
More terraform commands
-
terraform state rm module.path.resource_type.nameForget a resource from state without destroying it in cloud
-
terraform refresh -var-file=prod.tfvarsUpdate state file to match real infrastructure
-
terraform graph | dot -Tsvg > graph.svgVisualize resource dependency graph (requires Graphviz)
-
terraform state list | grep <pattern>Filter state resources by pattern
-
terraform fmt -recursiveRecursively format all .tf files in subdirectories