Terraform to Diagram

Paste your Terraform / HCL code and get a clean, editable architecture diagram in seconds. Every resource, with real names and dependencies. Free, no signup card needed.

How it works

  1. Paste your Terraform code (any provider: AWS, Azure, GCP)
  2. draft1 reads every resource, name and depends_on / reference
  3. Get an editable draw.io diagram with proper cloud icons

Try it with this example

resource "aws_lb" "main" {
  name = "app-lb"
}

resource "aws_ecs_service" "api" {
  name       = "api-svc"
  depends_on = [aws_lb.main]
}

resource "aws_db_instance" "pg" {
  engine     = "postgres"
  identifier = "app-db"
}

resource "aws_elasticache_cluster" "redis" {
  engine     = "redis"
  cluster_id = "app-cache"
}
Generate this diagram free →

FAQ

Does it work with modules and multiple files?

Yes — paste the resources that matter. For very large states, paste one stack at a time for the cleanest diagram.

Which providers are supported?

AWS, Azure, GCP and generic resources. Standard cloud icons are used automatically.

Can I edit the result?

Every diagram is a real draw.io file. Click Edit and adjust anything, or ask draft1 in plain English to change it.