Draw the dependency graph
Draw the resource dependency graph as SVG (needs Graphviz)
terraform graph | dot -Tsvg > graph.svg
- tool
- terraform43 commands
More terraform commands
-
terraform state list | grep <pattern>Filter the resources in state by a pattern
-
terraform fmt -recursiveFormat all .tf files, including subdirectories
-
terraform validateCheck the Terraform configuration for syntax and consistency errors
-
terraform plan -var-file=prod.tfvars -out=prod.tfplanBuild a plan with prod variables and save it to a file
-
terraform apply prod.tfplanApply exactly the plan you saved before, without a second confirmation