Skip to content

Terravision

Cloud architecture diagrams in both directions: AI prompt or JSON to diagram, diagram to Terraform via MCP server, and Terraform to diagram via CLI or CI/CD. Using Official…

Install: brew install graphviz

Works with Codex · 1,678 GitHub stars

Install

$brew install graphviz

Install command taken from the project's README or registry entry. Always review code before running it.

TerraVision

TerraVision is an AI-powered CLI tool that converts Terraform code into Professional Cloud Architecture Diagrams and solves the problem of keeping the most important document in cloud projects, the architecture diagram, up to date. With high velocity releases the norm now, code is the new source of truth so machine generated architecture diagrams are more accurate than relying on the freestyle diagram drawn by the cloud architect that probably doesn't match the reality of what is actually deployed in the cloud anymore.

TerraVision securely runs 100% Client Side without any dependency or access to your Cloud environment, dynamically parses your conditionally created resources and variables and generates an automatic visual of your architecture. TerraVision is designed to be a 'Docs as Code' (DaC) tool that can be included in your CI/CD pipeline to update architecture diagrams after your build/test/release pipeline phases and supplement other document generators like readthedocs.io alongside it.

Status

Supported Cloud Providers

  • ✅ AWS (Full support with 200+ services)
  • 🔄 Google Cloud Platform (Partial Support)
  • 🔄 Microsoft Azure (Partial Support)

Turn this...

into this...

⚠️ Alpha Software Notice
This software is still in alpha testing and code is shared on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Use at your own risk.

Benefits of terravision

  1. Cost
    • Save Visio/Drawing software licenses - terravision is free and open source
    • Doesn't require any cost incurring cloud resources to be spun up, it works instantly from your local machine
    • Regularly updating diagrams aligning, connecting dots and laying out icons is not the best use of your architect staff costs
  2. Accelerate and Automate
    • Use TF variable files as inputs to create multiple variant diagrams from the same TF code
    • Doesn't require infrastructure to exist to document it. Terravision works off your terraform plan not your remote statefile
    • Automate creation of architecture diagrams by running terravision as part of CI/CD pipelines
    • YAML based Diagrams as code allows you to Annotate generated diagrams with additional custom labels and resources e.g. unmanaged resources or external systems not captured in TF code
  3. Consistency across organisation
    • Auto downloads your organisational / external modules to ensure the latest view of downstream Terraform modules
    • Consistent design of architecture diagrams using industry standard icons and AWS/GCP/Azure approved style across teams
  4. Accurate Visibility
    • Real time state of diagram shows current infrastructure that matches exactly what is deployed in production today
    • Helps in third party architecture reviews, auditing, monitoring, reporting and debugging of the stack in a visual way
    • Custom Diagram code and output images can be put into source/version control for better maintainability and discoverability
  5. Security
    • Don't need to give access to your AWS account, credentials or CLI to draw diagram
    • Doesn't create intrusive cloud resources e.g. scanning instances or metadata tables which enterprises would need to approve
    • All source code stays in your local environment, diagrams are generated on your machines without calling out to external APIs
    • Only metatdata is sent to LLM models with only minimal aggregate data saved in external files, not any sensitive code or runtime environment v

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

Explore related