← all repositories
patrickchugh/terravision

Diagrams That Prove Your Terraform Plan Isn't Fiction

TerraVision renders cloud architecture diagrams straight from Terraform or a JSON graph, proving what your code actually deploys instead of what an AI imagines.

★1.6k stars Python Coding AssistantsApp Builders
terravision
Collecting fresh signals — velocity needs a few days of history.
collecting data…
star history

What it does

Reads your Terraform code—or a simple JSON graph of resource names—and renders professional architecture diagrams with official AWS, Azure, and GCP icons. It resolves count, for_each, and modules by deriving the graph from terraform plan, so the picture reflects the real infrastructure. Output formats include PNG, SVG, PDF, interactive HTML, and editable draw.io.

The interesting bit

The project doubles as an MCP server and agent skill, letting Claude, Codex, Gemini, or Cursor generate diagrams directly from a conversation. A simplified view strips out VPCs and subnets for executive decks, while the interactive HTML output packs pan, zoom, and animated data flow into a single offline-capable file.

Key highlights

  • Runs entirely client-side; no cloud credentials required and source code never leaves the machine.
  • Supports 385 AWS, 264 GCP, and 245 Azure resource types with official icon sets.
  • Accepts a terse JSON graph format using raw Terraform resource names, eliminating the need to learn a custom DSL.
  • Optional AI annotations via local Ollama, AWS Bedrock, or any OpenAI-compatible endpoint—only metadata is sent, never .tf files.
  • Terragrunt-aware and CI/CD friendly, with a pre-generated plan mode that decouples diagramming from live infrastructure access.

Caveats

  • The docs inconsistently describe Azure coverage as both “core services” and “full support.”
  • Terraform-native diagramming depends on a local Terraform 1.x or OpenTofu installation; JSON graph mode sidesteps this entirely.
  • Optional AI annotations require their own backend setup—local Ollama, AWS credentials for Bedrock, or environment variables for a REST API.

Verdict

Cloud engineers tired of maintaining stale draw.io files will find this genuinely useful; teams already happy with Mermaid or who don’t diagram at all can skip it.

Frequently asked

What is patrickchugh/terravision?
TerraVision renders cloud architecture diagrams straight from Terraform or a JSON graph, proving what your code actually deploys instead of what an AI imagines.
Is terravision open source?
Yes — patrickchugh/terravision is open source, released under the AGPL-3.0 license.
What language is terravision written in?
patrickchugh/terravision is primarily written in Python.
How popular is terravision?
patrickchugh/terravision has 1.6k stars on GitHub.
Where can I find terravision?
patrickchugh/terravision is on GitHub at https://github.com/patrickchugh/terravision.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.