# Your infrastructure. A clearer picture.

> Generate local AWS and Azure diagrams from Pulumi or Terraform/OpenTofu, then carry the same architecture into editable diagrams, images, and documentation.

- Page type: Product / work story
- Canonical page: https://switchcasestudios.com/work/iac-diagrams
- Summary: Generate local AWS and Azure diagrams from Pulumi or Terraform/OpenTofu. Download the Node.js CLI for draw.io, SVG, PNG, JPEG, PDF, Markdown, and JSON/XML exports.
- Product or related link: [Download CLI and view setup](https://switchcasestudios.com/downloads/iac-diagrams.html)
- Product entity: SwitchCase Infrastructure
- Live product: [Download & setup](https://switchcasestudios.com/downloads/iac-diagrams.html)
- Product summary: A local command-line tool that turns AWS and Azure infrastructure definitions into diagrams, editable draw.io files, and documentation from Pulumi or Terraform/OpenTofu inputs.
- Product features: Infrastructure as code, AWS & Azure, Editable diagrams, Local CLI

## At a glance
- **AWS + Azure:** Infrastructure diagrams from code
- **Local CLI:** Node.js 22+ and npm
- **Editable exports:** draw.io, images, and documentation

## Make infrastructure easier to inspect and explain.
SwitchCase Infrastructure reads Pulumi source and stack exports, Terraform/OpenTofu HCL, and state or plan JSON. It turns those inputs into diagrams with nested network boundaries, resource labels, and connectors, alongside documentation a team can review.

The public release is a version 1.0.0 command-line package, not a desktop application. Static file analysis runs locally without executing infrastructure. Templates help focus the output on the architecture question at hand, and editable draw.io files leave room for a human to refine the presentation.

## The decision behind SwitchCase Infrastructure
### Constraint
Architecture discussions need an inspectable view of infrastructure without making cloud access or code execution a prerequisite.

### Design choice
Read local files with a static-analysis workflow, generate several output formats, and keep cloud stack acquisition and preview execution explicit.

### Trade-off
A static diagram is limited by the supplied files and what the parser can resolve. It is not a live inventory or proof of deployed state, so diagnostics and source review still matter.

### In practice
Editable exports keep the result useful beyond generation, while the source files and diagnostics give reviewers a way to check what the picture represents.

## A conceptual product flow
1. **01 — Start with infrastructure files.** Point the CLI at a project, source files, or exported state. The bundled AWS and Azure examples let you try generation without a cloud account.
2. **02 — Inspect the architecture.** Choose a template and review the network boundaries, resource labels, connections, and diagnostics against the input files.
3. **03 — Take the picture into the discussion.** Export editable draw.io, SVG, PNG, JPEG, PDF, Markdown, or JSON/XML. Review private infrastructure details before sharing.

## Product preview
![Generated AWS example diagram showing resources grouped within VPC and subnet boundaries, connected by routed lines](https://switchcasestudios.com/assets/images/previews/iac-diagrams-product.webp)

Generated AWS diagram · Fictitious example included in the CLI download

Image dimensions: 1600 × 567.

## Explore this work
- [Explore software modernization consulting](https://switchcasestudios.com/services/software-modernization)

## Download and output details
- CLI version 1.0.0; Node.js 22+ and npm required
- Windows, macOS, or Linux, subject to native dependency support for your OS and CPU
- Pulumi source/stack exports; Terraform/OpenTofu HCL and state/plan JSON
- Editable draw.io; SVG, PNG, JPEG, and PDF exports
- Markdown documentation and JSON/XML exports
- Bundled examples, templates, schemas, documentation, fonts, and license notices
- Neutral Lucide icons for AWS resources; bundled Azure architecture icons
- MIT-licensed CLI; bundled assets retain separate license notices

## Frequently asked questions
### Is this a desktop application?
The public download is the Node.js CLI archive. It does not include a Windows executable, macOS app, or Linux desktop binary. Use Node.js 22+ and npm to install it following the download page instructions.

### Do I need a cloud account or an infrastructure CLI?
Not for the bundled static examples. Installation requires internet access for npm dependencies. Pulumi stack acquisition or explicitly enabled preview execution requires the Pulumi CLI and the relevant backend or cloud authentication.

### Does it deploy or change my infrastructure?
Static parsing does not execute or deploy infrastructure. Preview execution is opt-in; review its permissions and effects before enabling it. A generated diagram describes the supplied inputs, not a guarantee of the current deployed environment.

### Can I edit or share the diagrams?
Yes. Use the draw.io export to edit shapes and connectors, or share image, PDF, and documentation exports. Review outputs first: infrastructure names, identifiers, addresses, and labels can reveal private information even when secret values are omitted.

### Which icons are included in the download?
The public CLI uses neutral Lucide icons for AWS resources and bundled architecture icons for Azure. AWS resource mapping and service names are preserved. Some source-build documentation screenshots use different artwork; bundled assets retain their own license notices.

## Contact
Make a complex system easier to discuss.

SwitchCase can help uncover the structure of an existing system, make dependencies visible, and shape a practical modernization plan.

[Contact SwitchCase Studios](https://switchcasestudios.com/#contact)
