Duration: 5 minutes
Terraform knows a lot about your configuration. We've already seen how to use
terraform show
to output information about your resources. Terraform can also
present this data in DOT format, which is used by GraphVis and similar programs to generate graphs.
- Task 1: Generate a graph against your current Terraform configuration
Run terraform graph
in your terraform directory and note the output.
terraform graph
digraph {
compound = "true"
newrank = "true"
subgraph "root" {
# ...
}
}
Paste that output into webgraphviz to get a visual representation of dependencies that Terraform creates for your configuration.