12 Tools to Visualize Infrastructure Architecture

12 tools to visualize infrastructure: cloud scanners, Terraform visualizers and diagram-as-code (Diagrams, Mermaid, PlantUML, Structurizr), with examples.

Dec 31, 2025 - 15:34
Nov 7, 2026 - 05:16
 0  390
TOPICDevOps ToolsPractical guide
12 Tools to Visualize Infrastructure Architecture

The tools for visualizing infrastructure architecture fall into four groups: cloud scanners that draw diagrams from live accounts (Lucid, Cloudcraft, Hava, Cloudockit), IaC visualizers that read Terraform (Brainboard, InfraMap), diagram-as-code tools that render text into pictures (Diagrams, Mermaid, PlantUML, Structurizr), and modelling or drawing tools (IcePanel, draw.io).

Architecture diagrams go stale because someone has to redraw them after every change. The tools below reduce that work in different ways: some read your cloud account, some read your infrastructure code, and some let you keep the diagram in Git next to that code. This guide explains what each tool actually takes as input and produces as output, checked on each vendor's site or repository in November 2026. If your infrastructure is defined in Terraform or OpenTofu, start with our ranking of infrastructure as code tools, since several visualizers below read that code directly.

Key takeaways

  • Pick by input first. A cloud scanner shows what is actually deployed. An IaC visualizer shows what your code says should be deployed. Diagram-as-code shows what an engineer chose to draw.
  • Cloud scanners (Lucid's Cloud Accelerator, Cloudcraft, Hava, Cloudockit) connect to AWS, Azure and Google Cloud and redraw diagrams as resources change. They are commercial products.
  • InfraMap and the built-in terraform graph command turn Terraform state or code into Graphviz DOT output, which you render with dot.
  • Diagrams (Python), Mermaid, PlantUML and Structurizr are open source and keep diagrams as text, so changes go through pull requests and render in CI.
  • For layered views from system context down to containers, use a C4-based tool such as Structurizr, C4-PlantUML or IcePanel.
  • Most teams combine two kinds: a scanner or IaC visualizer for accurate inventory, and diagram-as-code or a modelling tool for the explanatory views people read.

The 12 tools at a glance

#ToolTypeInputOutputLicence
1Lucid Cloud AcceleratorCloud scannerAWS, Azure, Google Cloud account dataEditable Lucid diagrams linked to cloud dataCommercial add-on for Lucid Enterprise
2CloudcraftCloud scannerAWS, Azure, Google Cloud, OCI, vSphere (in Datadog)Live 2D/3D diagrams with security, cost and observability overlaysCommercial (Datadog)
3HavaCloud scannerAWS, Azure, Google Cloud, KubernetesInfrastructure, security and container diagrams with version history; Visio, PNG, CSV, JSON exportCommercial, SaaS or self-hosted
4CloudockitCloud scanner and documentation generatorAzure, AWS, Google Cloud, VMware, Hyper-VVisio, draw.io, Lucidchart and PDF diagrams; Word, PDF, Excel, HTML documentationCommercial
5BrainboardVisual IaC designerDrag-and-drop design or existing Terraform modulesTerraform/OpenTofu code, diagrams, drift reportsCommercial
6InfraMapIaC visualizerTerraform state (v3, v4) or HCLGraphviz DOTMIT
7DiagramsDiagram as code (Python)Python scriptPNG and other Graphviz formatsMIT
8MermaidDiagram as code (Markdown-style text)Mermaid text, including architecture-betaSVG rendered in the browser or CLIMIT
9PlantUML with C4-PlantUMLDiagram as code (text)PlantUML textPNG, SVGLGPL-3.0 (PlantUML); C4-PlantUML is MIT
10StructurizrModel as code (C4)Structurizr DSLMany C4 views from one model; exports to PlantUML, Mermaid, PNG, SVGFree commands; paid Server
11IcePanelCollaborative modelling (C4)Shared model edited in the browserMulti-level diagrams and flowsCommercial
12draw.io (diagrams.net)Manual diagrammingDrawing with cloud shape libraries.drawio, PNG, SVG, PDFApache 2.0

Live cloud scanners: diagrams from what is deployed

Cloud scanners connect to your cloud accounts with read access, inventory resources and lay them out as diagrams. They answer "what is actually running?", which makes them useful for audits, onboarding and incident reviews. The trade-off is that they show everything, so you need filters and grouping to get a readable picture.

1. Lucid Cloud Accelerator

Lucid's cloud visualization, sold as the Cloud Accelerator add-on for Lucid Enterprise accounts, imports data from AWS, Azure and Google Cloud and generates a diagram of your current architecture. You can bulk-import a whole AWS organisation, then add shapes and unmapped resources while the diagram keeps its link to the imported data. Because the output is a normal Lucid document, it fits teams already using Lucidchart for other diagrams and sharing them with non-engineers.

Best for: organisations on Lucid that want generated cloud diagrams they can annotate and present.

2. Cloudcraft

Cloudcraft is now part of Datadog. Inside Datadog it supports AWS, Azure, Google Cloud, OCI and vSphere, and shows resources in near real time in a 3D view that can be toggled to 2D. Overlays add context: infrastructure, observability, security (IAM, firewall and security group visibility) and cloud cost, plus APM on AWS in preview. The cost overlay is not available for Google Cloud, and vSphere supports only the infrastructure and monitors overlays. A standalone Cloudcraft app also exists and is documented separately.

Best for: Datadog customers who want architecture diagrams tied to monitoring and security data.

3. Hava

Hava generates interactive diagrams from AWS, Azure and Google Cloud, with Kubernetes resources shown on the same diagrams. It produces infrastructure views grouped by VPC or resource zone, security views covering security groups, route tables, subnets and ingress and egress IPs, and container views. Hava syncs daily or on demand through its API, CLI or a CI/CD step, archives previous versions so you can compare diagrams over time, and exports to Visio, PNG, CSV and JSON. It can also be self-hosted inside your own network.

Best for: teams that want automatic, versioned diagrams and change alerts across several clouds.

4. Cloudockit

Cloudockit scans Azure, AWS and Google Cloud, plus VMware and Hyper-V on premises, and generates both diagrams and written documentation. Diagrams can be opened and edited in Microsoft Visio, draw.io or Lucidchart, or delivered as PDF. Documentation comes out as Word, PDF, Excel or HTML, and asset inventories as Excel or JSON. It supports scheduled generation, an API and change tracking, and a container version can be called from your own pipelines.

Best for: consultancies and regulated teams that need formal architecture documents, not only pictures.

IaC visualizers: diagrams from Terraform

If your infrastructure is defined in Terraform or OpenTofu, the code already describes the architecture. IaC visualizers draw from that code or from state, so they work before anything is deployed and fit naturally into pull request reviews. For more on managing state safely, see our Terraform productivity tools.

5. Brainboard

Brainboard works in the opposite direction from a scanner: you design infrastructure visually and it generates Terraform code as you draw. It also manages Terraform and OpenTofu modules centrally and can import existing modules. It supports AWS, Azure, Google Cloud, OCI and Scaleway in one workspace, has a visual CI/CD engine with integrations for Infracost, Checkov, tfsec, Terrascan and OPA, connects to GitHub, GitLab, Bitbucket and Azure DevOps, and runs scheduled drift detection hourly, daily or weekly.

Best for: teams that want architects to design visually while the output stays as reviewable Terraform.

6. InfraMap

InfraMap is an open-source (MIT) command-line tool that reads Terraform state or HCL and prints a simplified graph in Graphviz DOT format. It has provider-specific logic for AWS, Google Cloud, Azure, OpenStack and FlexibleEngine that hides noise and keeps the resources that matter; other providers still work but show every resource. State files must be version 3 or 4. A separate prune subcommand strips unnecessary information from a state file so it can be shared more safely.

# Graph from a state file, rendered to PNG with Graphviz
inframap generate state.tfstate | dot -Tpng > graph.png

# Graph from HCL in a directory
inframap generate ./infra --hcl | dot -Tsvg > infra.svg

Terraform itself includes terraform graph, which prints the dependency order of resources and data blocks in DOT. It is more useful for debugging dependencies than for presenting architecture, but it needs no extra install:

terraform graph | dot -Tpng > deps.png
terraform graph -type=plan | dot -Tpng > plan-graph.png

Best for: quick, free diagrams of Terraform estates and dependency debugging.

Diagram as code: diagrams that live in Git

Diagram-as-code tools take a text file and render a picture. Because the source is text, diagrams are versioned, reviewed in pull requests and regenerated in CI, which is what keeps them current. Our post on continuous documentation in DevOps covers the practice behind this.

7. Diagrams (Python)

Diagrams, by mingrammer, lets you describe cloud architecture in Python. It ships node icons for AWS, Azure, Google Cloud, Kubernetes, OCI, IBM, Alibaba Cloud, OpenStack, DigitalOcean, on-premises software, SaaS products and C4 elements, and uses Graphviz to render. Install it with pip install diagrams after installing Graphviz. The quick start from the docs:

# diagram.py
from diagrams import Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB

with Diagram("Web Service", show=False):
    ELB("lb") >> EC2("web") >> RDS("userdb")

Running python diagram.py writes web_service.png to the working directory. Because it is Python, you can generate diagrams from data, for example looping over a list of services.

Best for: engineers who want accurate cloud icons and are comfortable with Python.

8. Mermaid

Mermaid renders diagrams from Markdown-style text and is widely supported in documentation tools and Git platforms that render Markdown. Alongside flowcharts and sequence diagrams, it has an architecture diagram type, added in v11.1.0 and still marked beta, so the syntax may change. Built-in icons are cloud, database, disk, internet and server, and you can register Iconify icon packs for more. The example from the docs:

architecture-beta
    group api(cloud)[API]

    service db(database)[Database] in api
    service disk1(disk)[Storage] in api
    service disk2(disk)[Storage] in api
    service server(server)[Server] in api

    db:L -- R:server
    disk1:T -- B:server
    disk2:T -- B:db

Best for: lightweight diagrams embedded directly in READMEs, wikis and pull request descriptions.

9. PlantUML with C4-PlantUML

PlantUML generates diagrams from text and has been used for UML and architecture diagrams for many years. The C4-PlantUML library adds C4 model elements (people, systems, containers, components and relationships), and PlantUML bundles the last released version in its standard library, so no download is needed:

@startuml
!include <C4/C4_Container>

Person(user, "Customer")
System_Boundary(shop, "Online shop") {
  Container(web, "Web app", "React", "Serves the storefront")
  Container(api, "Orders API", "Java, Spring Boot")
  ContainerDb(db, "Orders DB", "PostgreSQL")
}

Rel(user, web, "Uses", "HTTPS")
Rel(web, api, "Calls", "JSON/HTTPS")
Rel(api, db, "Reads and writes", "JDBC")
@enduml

Best for: teams that want C4 diagrams as text without adopting a separate modelling tool.

10. Structurizr

Structurizr is a "models as code" tool for the C4 model, created by the C4 model's author and described as its reference implementation. Instead of drawing each diagram separately, you write one model in the Structurizr DSL and define views of it. Changing a name or relationship in the model updates every view. The command-line tooling (local preview, export, validate and Git-style push and pull) is free; the Server is the paid component. Exports include PlantUML, C4-PlantUML, Mermaid, WebSequenceDiagrams, a static site and PNG or SVG.

workspace {
    model {
        customer = person "Customer"
        shop = softwareSystem "Online shop" {
            web = container "Web app" "Serves the storefront" "React"
            api = container "Orders API" "" "Java, Spring Boot"
            db = container "Orders DB" "" "PostgreSQL"
        }
        customer -> web "Uses"
        web -> api "Calls"
        api -> db "Reads and writes"
    }
    views {
        systemContext shop {
            include *
            autolayout lr
        }
        container shop {
            include *
            autolayout lr
        }
    }
}

Best for: architecture teams that want consistent C4 views across many systems.

Modelling and drawing tools

11. IcePanel

IcePanel is a collaborative tool for modelling and diagramming software architecture in the browser. Domains, systems and flows live in one shared model, and multi-level diagrams let you zoom from a high-level view to detail depending on the audience, following the C4 approach. It also tracks ownership, status, risk and standards for governance, supports designing a future-state architecture, and integrates with Confluence, SharePoint, Miro and Notion.

Best for: organisations that want C4-style modelling without asking everyone to write DSL code.

12. draw.io (diagrams.net)

draw.io is a free diagram editor under the Apache 2.0 licence, available in the browser and as a desktop app. It includes shape libraries for AWS, Azure, Google Cloud and Kubernetes, and saves .drawio files that are XML, so they can be committed to Git. Cloudockit can export its generated diagrams to draw.io, which gives you an editable starting point instead of a blank page.

Best for: quick hand-drawn architecture views, whiteboard-style planning and editing generated diagrams.

Other tools worth knowing

  • Excalidraw is an open-source (MIT) virtual whiteboard with a hand-drawn style, good for early design sessions.
  • AWS Diagram-as-code (awslabs, Apache 2.0) generates AWS architecture diagrams from YAML.
  • TerraVision (AGPL-3.0) produces cloud architecture diagrams from Terraform code.
  • Rover is an interactive Terraform state and configuration explorer, but its last release was in 2022, so check whether it works with your Terraform version.
  • For live Kubernetes views rather than static diagrams, see our list of Kubernetes dashboard tools.

Keeping diagrams current in CI

Diagram-as-code only stays accurate if the diagram is regenerated when the code changes. A simple pattern is a CI job that renders diagrams on every merge to the default branch and publishes them as artifacts or to your documentation site. This GitHub Actions job renders a Diagrams script:

name: render-diagrams
on:
  push:
    branches: [main]
    paths:
      - "docs/diagrams/**"
jobs:
  render:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: "3.12"
      - run: sudo apt-get update && sudo apt-get install -y graphviz
      - run: pip install diagrams
      - run: python docs/diagrams/diagram.py
      - uses: actions/upload-artifact@v4
        with:
          name: diagrams
          path: "*.png"

The same idea works for InfraMap after terraform apply, for Structurizr exports, or for Mermaid files rendered with its CLI. Pair it with code review: when a pull request changes infrastructure, the reviewer should see the diagram change too.

How to choose an infrastructure visualization tool

Your goalChooseWhy
Audit or document what is deployed across cloudsHava, Cloudockit, Lucid Cloud AcceleratorReads live accounts and redraws on change
Diagrams next to monitoring and security dataCloudcraft in DatadogOverlays from the same platform
Free view of a Terraform estateInfraMap, terraform graphReads state or HCL, outputs DOT
Design visually, ship TerraformBrainboardGenerates code from the design
Diagrams reviewed in pull requestsDiagrams, Mermaid, PlantUMLText source in Git, rendered in CI
Consistent C4 views across many systemsStructurizr, IcePanelOne model, many views
Fast sketch for a meetingdraw.io, ExcalidrawNo setup, free

When you evaluate a scanner, check the permissions it needs (read-only roles only), where diagram data is stored, how it handles multiple accounts, and whether it can redact sensitive details before you share an export. For diagram-as-code, check icon coverage for your providers and whether the output renders in the places your team reads documentation. Our list of tools that improve DevOps documentation covers where these diagrams usually end up, and cloud architecture patterns for DevOps automation covers what they usually show.

Learning to design and document infrastructure

Good diagrams come from understanding the infrastructure underneath them. DevOps Training Institute's Terraform training covers state, modules and plans, which is what IaC visualizers read, and our DevOps training covers the cloud and Kubernetes architecture these tools draw. Both run in our Kharadi, Pune classroom and live online across India.

Frequently asked questions

What is the best tool to visualize cloud infrastructure automatically?

For live cloud accounts, Hava, Cloudockit, Lucid's Cloud Accelerator and Cloudcraft generate diagrams from AWS, Azure and Google Cloud. Choose Cloudcraft if you use Datadog, Cloudockit if you need written documentation, and Hava for versioned diagrams with change alerts.

What is diagram as code?

Diagram as code means writing a diagram as text, such as Python, Mermaid, PlantUML or Structurizr DSL, and rendering it with a tool. The text lives in Git, so changes are reviewed and diagrams can be regenerated in CI.

How do I visualize Terraform infrastructure?

Run terraform graph | dot -Tpng > graph.png for a dependency graph, or use InfraMap to turn state or HCL into a simplified provider-aware diagram. Brainboard and TerraVision are other options for Terraform-based diagrams.

What is the C4 model and which tools support it?

The C4 model describes software architecture at four levels: system context, containers, components and code. Structurizr is its reference implementation, C4-PlantUML adds C4 to PlantUML, and IcePanel offers C4-style modelling in the browser.

Is draw.io free for architecture diagrams?

Yes. draw.io (diagrams.net) is free and open source under Apache 2.0, runs in the browser or as a desktop app, and includes AWS, Azure, Google Cloud and Kubernetes shape libraries.

Can Mermaid draw cloud architecture diagrams?

Yes. Mermaid has an architecture-beta diagram type since v11.1.0, with built-in icons and support for Iconify icon packs. It is still marked beta, so the syntax may change.

Are live cloud scanning tools safe to connect to production accounts?

They can be, if you grant read-only access, review what data the vendor stores and where, and limit who can view or export diagrams. Some tools, such as Hava, also offer a self-hosted option.

How do I keep architecture diagrams up to date?

Generate them instead of drawing them by hand. Use a cloud scanner on a schedule for deployed resources, or keep diagram-as-code in the repository and render it in a CI job whenever infrastructure code changes.

References

Interested in learning more?Get a callback from our training advisors.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.