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.
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]-> dbWhy write AWS diagrams as code?
- It knows AWS structure. Accounts, regions, VPCs, and subnets are real scopes, so every resource is drawn in the same place it lives in your account.
- It catches mistakes. Rules cover subnet containment, network placement, security groups, event targets, IAM attachment, and relationship kinds, and each problem comes back with a diagnostic code.
- It reviews like code. The source is plain text, so architecture changes show up as small, readable diffs in pull requests, and the same source always renders the same SVG.
- It uses official icons. Services render with the official AWS Architecture Icons instead of generic boxes.
More AWS architecture examples.
Each example passes ArchLex provider checks and opens in the playground. Browse all examples.
- Minimal Vertical SliceRDS Proxy, RDS Database, and ECS Service
- Display Labels & Named InstancesInstance names and custom display labels distinguishing primary and replica databases
- Classic 3-Tier Web ArchitectureApplication Load Balancer distributing to ECS container tasks connected to RDS
- Serverless MicroserviceAPI Gateway invoking Lambda function accessing DynamoDB table
- Full-Stack Serverless Web ApplicationRoute 53 DNS, CloudFront CDN, S3 static assets, API Gateway, Lambda, and DynamoDB
- Containerized App with In-Memory CacheALB distributing traffic to ECS microservices cached by ElastiCache and backed by RDS
- Event-Driven MicroservicesEventBridge publishing to SQS Queue subscribed by Lambda
- Async Fan-Out Event ProcessingAPI Gateway triggering SNS Topic fan-out to parallel SQS Queues for Email workers and Analytics S3 Data Lake
- VPC Subnet HierarchyProduction Account with us-east-1 Region, VPC, Subnet, and container database workload
- Secure Multi-Subnet VPC InfrastructureProduction Account with Public Subnet ALB/Security Group and isolated Private Subnets for ECS and RDS Database
- AI/ML Model Inference PipelineCloudFront and API Gateway feeding Lambda preprocessor to EKS GPU inference cluster backed by ElastiCache and S3
- Enterprise Multi-Tier Cloud ArchitectureFull-stack AWS architecture featuring CloudFront CDN, API Gateway, nested VPC/Subnets, ECS tasks, ElastiCache, and RDS Proxy
- Event-Driven Data Ingestion PipelineHigh-throughput event streaming with API Gateway, EventBridge, SNS, SQS, Lambda workers, DynamoDB, and S3 Data Lake
- Multi-Region High Availability & DRCross-region active/passive failover with Route 53 DNS routing, primary and secondary VPCs, and database replication
- Live Video Streaming PipelineAWS MediaLive ingesting live streams, MediaPackage packaging for delivery, and CloudFront CDN distribution
- IoT Data Collection & AnalyticsIoT Core ingesting device data, IoT Analytics processing streams, and QuickSight visualizing insights
- Serverless Data Lake ETL PipelineKinesis Firehose streaming to S3 Data Lake, Glue ETL transforming data, and Athena querying results
- Complete CI/CD Deployment PipelineCodePipeline orchestrating CodeBuild, CodeDeploy to ECS, with CloudFormation infrastructure
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.
npx skills add baires/archlexPrefer 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.svgAWS 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