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?

More AWS architecture examples.

Each example passes ArchLex provider checks and opens in the playground. Browse all examples.

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 --output three-tier.svg

AWS diagram questions.

Which AWS services can I draw?

The AWS catalog has 194 entries across networking, compute, storage, databases, security, observability, integration, analytics, AI, developer tools, migration, media, IoT, hybrid, and management. Unknown kinds still render as generic nodes and report AWS-CATALOG-UNKNOWN-RESOURCE-001.

Does ArchLex inspect my AWS account?

No. ArchLex checks the diagram you write: known resources, accounts, regions, VPCs, subnets and typed relationships. It does not read your account or infer IAM policies, security group rules, routes or runtime configuration.

Does it use the official AWS icons?

Yes. Bundled services render with the official AWS Architecture Icons, imported into sanitized SVG fragments. Additional catalog IDs map to a pinned, allowlisted AWS icon source.

Can an AI agent draw AWS diagrams with ArchLex?

Yes. Install the agent skill with npx skills add baires/archlex, or connect the free hosted MCP server at https://mcp.archlex.dev/mcp. Claude Code, Cursor, Codex and other MCP clients can look up AWS resources, validate the source, render SVG and return an editable playground link. No API key or account is required.

AWS service architecture diagrams.

Focused pages for high-search services, each with validated ArchLex source and SVG.

Other clouds.

Mix providers in one diagram when your architecture does.

Open source · MIT licensed

Diagram your AWS architecture.