AWS · Open source · No account required

AWS architecture diagrams as code.

Describe your AWS architecture in a few lines of text. ArchLex validates placement and connections against its 194-service AWS catalog, then renders a clean SVG with official AWS Architecture Icons.

A three-tier web app on AWS.

An Application Load Balancer in a public subnet, two EC2 web servers in a private subnet, and an RDS database in its own subnet, all inside one VPC.

AWS three-tier architecture: a load balancer routes to two EC2 web servers that read from and write to an RDS PostgreSQL database inside a VPCAWS three-tier architecture: a load balancer routes to two EC2 web servers that read from and write to an RDS PostgreSQL database inside a VPC
provider aws
direction LR
validation normal

account prod {
  region us-east-1 {
    vpc main {
      subnet public {
        alb: alb["Web Load Balancer"]
      }

      subnet private-app {
        web1: ec2["Web Server 1"]
        web2: ec2["Web Server 2"]
      }

      subnet private-db {
        db: rds["PostgreSQL Database"]
      }
    }
  }
}

alb -[routes]-> web1
alb -[routes]-> web2
web1 -[reads]-> db
web1 -[writes]-> db
web2 -[reads]-> db
web2 -[writes]-> db

Why write AWS diagrams as code?

Let your AI agent draw it.

Install the ArchLex skill or connect the MCP server, then ask Claude, Cursor, or Codex to diagram your AWS setup. The agent writes the source, ArchLex validates it, and you get back an SVG.

Agent skill install
npx skills add baires/archlex

Prefer MCP? Follow the MCP server guide.

Render from the command line.

Save the source as a .arch file and render it with the CLI, or call @archlex/core from Node.js or the browser.

npx @archlex/cli render three-tier.arch --direction LR --output three-tier.svg

Open source · MIT licensed

Diagram your AWS architecture.