Interview Prep/Terraform/Workflow and CLI

What does `terraform graph` give you?

IntermediateConceptWorkflow and CLI
Answer

It prints the dependency graph in DOT format, rendered by Graphviz.

terraform graph | dot -Tsvg > graph.svg
terraform graph -type=plan-destroy

We use it to debug unexpected ordering or a Cycle error, though large graphs are unreadable without filtering.

All Terraform questions Roadmap: Terraform

More on Workflow and CLI