diagram_from_terraform
Generates cloud architecture diagrams from Terraform plan, state, or .tfstate JSON, mapping VPCs, subnets, and resource groups into nested boundaries and references into edges.
Instructions
Build a diagram from Terraform: terraform show -json plan.out, state JSON, or a .tfstate file.
Pass the JSON text in terraform_json, or a file path inside the configured input roots.
VPC/VNet/subnet/resource-group become nested boundaries; references become edges (dashed =
inferred through listeners, NICs, role assignments, etc.). Returns the generated spec so it
can be refined and re-rendered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| title | Yes | ||
| direction | No | LR | |
| output_formats | No | ||
| render_diagram | No | ||
| terraform_json | No |