Draw the dependency graph

Draw the resource dependency graph as SVG (needs Graphviz)

terraform graph | dot -Tsvg > graph.svg

tool
terraform43 commands
tags
terraformdebug

More terraform commands

  • terraform state list | grep <pattern>

    Filter the resources in state by a pattern

  • terraform fmt -recursive

    Format all .tf files, including subdirectories

  • terraform validate

    Check the Terraform configuration for syntax and consistency errors

  • terraform plan -var-file=prod.tfvars -out=prod.tfplan

    Build a plan with prod variables and save it to a file

  • terraform apply prod.tfplan

    Apply exactly the plan you saved before, without a second confirmation

all 43 terraform commands