Why InfraSketch exists
Every DevOps engineer knows the pain: you've written hundreds of lines of Terraform, your infrastructure is running perfectly, but when someone asks "can you show me the architecture?" — you're stuck opening draw.io and manually dragging boxes for an hour.
Existing tools like Cloudcraft and Hava require you to connect your AWS account, hand over credentials, and pay $49-99/month. That's overkill when all you need is a quick diagram from your existing code.
InfraSketch solves this. Paste your Terraform code, get a diagram. No credentials, no signup, no cost. Everything runs in your browser — your code never touches a server.
What it does
Terraform HCL & plan JSON
Parses 30+ AWS and 22+ Azure resource types. Paste HCL directly or use terraform show -json for fully resolved resources including module expansion.
Full module expansion
Upload a ZIP of your Terraform project — local modules are fully expanded inline, showing every resource inside each module with correct icons and relationships. Toggle Auto-fetch registry modules to pull public modules (e.g. terraform-aws-modules/vpc/aws) directly from the Terraform Registry.
Terragrunt
Paste one or more terragrunt.hcl units separated by # --- unit: name --- markers. Dependency blocks become directed edges between units.
Docker Compose
Visualize container architecture from docker-compose.yml files. Supports array and map-form depends_on syntax.
AWS & Azure icons
Official AWS Architecture Icon set and Microsoft Azure service icons. Resources are auto-categorised into zones: Internet, Ingress, VPC, Data, Messaging, Security.
Export & draw.io preview
Download as PNG (2× retina), SVG (icons inlined), or draw.io XML. A visual preview appears before download. Upload any SVG and convert it to native draw.io format with editable stencils.
100% client-side
All processing happens in your browser. Zero data sent to any server. Works offline once loaded.
Open source
Fully open source on GitHub. Inspect the code, contribute, or fork it.
Who built this
InfraSketch is built by Raghvendra Pandey, a Senior DevOps / SRE Engineer with 9+ years of experience building cloud infrastructure in production.
Having managed 100+ microservices on AWS EKS, migrated service meshes from Consul to Istio, and written thousands of lines of Terraform — the frustration of manually drawing architecture diagrams was personal. InfraSketch is the tool I wished existed.
Find me on GitHub and LinkedIn.
Tech stack
InfraSketch is intentionally simple:
The frontend is built with vanilla HTML, CSS, and JavaScript — no frameworks, no build step, no dependencies. The Terraform parser is custom-written JavaScript that extracts resource types, names, and references using regex-based pattern matching. Diagrams are rendered as SVG using the official AWS Architecture Icon set. The site is hosted on GitHub Pages with a custom domain on Cloudflare.
Roadmap
InfraSketch is actively being improved. Recently shipped: Azure resource support (22+ types), Terraform module blocks, Terragrunt dependency graphs, draw.io visual preview, full local module expansion via ZIP upload, and Terraform Registry module auto-fetch.
Planned next: CloudFormation template support, Kubernetes manifest visualization, GCP resource icons, nested module recursion, and an interactive diagram editor.
Try InfraSketch now
Paste Terraform HCL, a plan JSON, Terragrunt units, or Docker Compose and get a diagram in seconds.
Open InfraSketch