Display your Terraform module call stack as a tree in your terminal.
With Homebrew:
brew install busser/tap/tftree
From source:
make build # then move bin/tftree into your PATH
In any directory where you would run terraform plan
:
tftree
You can also run tftree
in a specific directory:
tftree ./production
To disable output formatting (colors, bold text, etc.):
tftree -no-color
To use a different Terraform binary, like Terragrunt for example:
tftree -terraform-bin=terragrunt
The code is licensed under the permissive Apache v2.0 license. Read this for a summary.