Skip to content
🧪 The terragrunt-v1 docs are open for feedback! 🧪
This site will eventually replace the terragrunt.io site.
To give feedback on your experience with the new docs, click here.

graph

Usage

Print a visual representation of the Terragrunt dependency graph in DOT language format.

This command analyzes your Terragrunt configuration and outputs a directed acyclic graph (DAG) showing the relationships and dependencies between your Terraform modules.

Examples

Graph all dependencies in the graph as a DotViz graph.

Terminal window
$ terragrunt dag graph
digraph {
"alb" ;
"ecs" ;
"ecs" -> "alb";
}

Graph all dependencies in visual diagram.

Terminal window
$ terragrunt dag graph | dot -Tpng > graph.png