terraform graph can output Mermaid format
Introduced 2026-08-26 · score 0.97
HOW TO USE IT
For a dependency graph in Mermaid format, run `terraform graph -format=mermaid` from the Terraform working directory. Terraform 1.16.0 release notes document the new flag; current v1.16.x command docs do not list its syntax or parameter details.
WHY THIS HELPS
Render a Terraform dependency graph in Mermaid for repository review or documentation.
REQUIREMENTS AND LIMITATIONS
- Version: 1.16.0
FIRST-PARTY EVIDENCE
Check the installed version and the source before using it. Entry JSON