Skip to content
OpsGraph

Terraform Diagram Generator

Free browser-based tool that generates cloud architecture diagrams from Terraform HCL code. Supports 140+ AWS, Azure, and GCP resource types with real provider icons, VPC/subnet grouping, and dependency arrows — no install or sign-up required.

Editor
Diagram

How to Use

  1. Paste your Terraform code in the editor on the left. The pre-loaded example shows a typical AWS infrastructure with VPC, EC2, RDS, S3, CloudFront, and Lambda.
  2. Click "Generate Diagram" to parse your HCL and create an interactive architecture diagram.
  3. Explore the diagram — pan, zoom, and click on any resource to see its configuration details and dependencies.
  4. Export — download the diagram as PNG or SVG for documentation, presentations, or pull request descriptions.

Supported Resources

We support 140+ resource types across AWS, Azure, and GCP:

  • Compute: EC2, Auto Scaling, Launch Templates
  • Serverless: Lambda, API Gateway, Step Functions
  • Storage: S3, EFS, EBS
  • Database: RDS, DynamoDB, ElastiCache
  • Network: VPC, Subnet, ALB, NAT Gateway
  • Security: Security Groups, KMS, WAF, ACM
  • Container: ECS, EKS, ECR
  • Messaging: SQS, SNS, Kinesis
  • CDN/DNS: CloudFront, Route 53
  • Monitoring: CloudWatch Logs & Alarms

Read the Guide

Frequently Asked Questions

Is my Terraform code sent to any server?
No. All parsing and diagram generation happens 100% in your browser. Your HCL code never leaves your machine.
Which cloud providers are supported?
AWS (50+ resource types), Azure (45+ resource types), and GCP (45+ resource types) are all supported with provider-specific icons and VPC/VNet grouping.
Why is the first load slow?
The HCL parser is a compiled Go library (~3MB) that loads on demand. Subsequent generations are much faster.
What if my resource type isn't recognized?
Unrecognized resource types will show with a generic cloud icon. Dependencies are still extracted and displayed correctly.

Related Tools