AWS architecture diagrams are essential for documenting cloud infrastructure, planning deployments, and communicating system designs. Draw.io (now also known as diagrams.net) is the most popular free tool for creating these diagrams, and for good reason—it provides official AWS icon libraries, templates, and a flexible canvas that works entirely in your browser.
This guide covers everything you need to know about creating AWS architecture diagrams in draw.io: enabling the right shape libraries, using templates, following best practices, and integrating with other tools.
Cloud Architecture
Create cloud architecture diagrams for AWS, Azure, GCP, and more. Design scalable infrastructure with professional cloud icons.
Complete guide to creating AWS architecture diagrams in Draw.io—enable AWS shapes, use templates, layout best practices, and integrations.
Click Cloud Architecture to open AI Line Studio and generate diagrams from natural language in seconds.
Draw.io is the go-to choice for AWS architecture diagrams because it's:
Before you can start drawing, you need to enable the AWS shape libraries. Here's how:
In the left panel, click More Shapes at the bottom. This opens the shape library selection dialog.
Scroll down to the Networking section. Check the checkboxes next to the AWS libraries you want to use:
Click Apply to load the libraries. When you enable just one AWS shape library, you'll see a number of sub-categories appear in the left panel.
Hover over a shape in the shape library to see a tooltip that tells you what it represents in AWS notation. You can also search for shapes by name in the shape library panel.
If you don't want to start with a blank canvas, Draw.io provides a number of example AWS infrastructure templates.
You can then replace, move, and add more shapes, text, and connectors as needed.
Draw.io includes a dedicated AWS / Groups shape library for indicating groupings of elements. Use these to show:
As AWS shapes are stacked on top of each other, with various rectangles showing groupings, you may need to modify the depth order in which shapes are rendered. When you add a new shape, it's dropped at the front of the stack.
To reorder shapes:
Following consistent layout guidelines makes diagrams readable and professional:
For diagrams with 13+ services, increase spacing to 220px horizontal and 160px vertical, with page size of at least 1600x1200.
Clean edge routing is critical for readable diagrams:
edgeStyle=orthogonalEdgeStyle for right-angle connectorsMultiple edges from one service:
mxgraph.aws4 stencil library—the official AWS Architecture Iconssketch=0 on all icons and strokeColor=#ffffff on all AWS service iconsverticalAlign=bottomalign=rightlabelBackgroundColor=#F5F5F5 so labels don't overlap linespageWidth="2400" pageHeight="1400" minimumdx="2800" dy="1600" for proper viewportEach AWS service category uses official colors for resource icon shapes. All resource icon shapes must use strokeColor=#ffffff and gradientDirection=north.
| Category | fillColor | gradientColor | Example Services |
|---|---|---|---|
| Compute | #D05C17 | #F78E04 | EC2, ECS, EKS, Fargate |
| Storage | #277116 | #60A337 | S3, EBS, EFS, Glacier |
| Database | #3334B9 | #4D72F3 | RDS, DynamoDB, ElastiCache |
| Networking | #5A30B5 | #945DF2 | CloudFront, Route 53, ALB |
| Security | #C7131F | #F54749 | IAM, Cognito, WAF, Shield |
| Analytics | #5A30B5 | #945DF2 | Kinesis, Athena, Glue |
| Management | #BC1356 | #F54749 | CloudWatch, CloudFormation |
| Machine Learning | #116D5B | #4AB29A | SageMaker, Bedrock |
Drag a replacement shape from a shape library and hover over a shape in the diagram until you see the black replace shape arrow appear. Release, and the shape will be replaced. You may need to tweak the size and style afterwards.
Copy styles: Select a shape with the style you want. In the Style tab, click Copy Style. Select shapes to update, and click Paste Style.
Copy sizes: Select a shape with the size you want. In the Arrange tab, click Copy Size. Select shapes, then click Paste Size.
If you're regularly using the same shapes—for example, to create sub-sections of your diagram for backup or redundancy purposes—use the Scratchpad to store these shapes (along with groups of shapes, and even entire diagrams!).
Go to View > Scratchpad to open it. Note: the Scratchpad only stores shapes locally; these are not visible to other team members.
Cloudcraft makes it easy to export to draw.io. In your Cloudcraft account, click Export > 2D export to draw.io. The diagram opens in a new tab, ready to save.
When exporting to draw.io, Cloudcraft may not use the most recent AWS shapes. It's easy to update your diagram to the newest AWS shapes yourself.
Workload Discovery on AWS can export diagrams so you can further annotate them using draw.io. This is useful for building architecture diagrams using near real-time data.
You can now generate AWS architecture diagrams in draw.io format using AI. The aws-architecture-diagram-skill generates draw.io (.drawio) XML files representing AWS architecture diagrams.
Some tools, like the draw.io MCP server, enable AI assistants to build technical diagrams through natural language prompts.
If icons appear as empty squares:
If shapes are hidden behind others:
If edges cross through containers:
| Feature | Draw.io | Lucidchart |
|---|---|---|
| Price | Free | $7.95+/month |
| AWS Icons | Official, up-to-date | Official |
| Real-time Collaboration | Limited (via integrations) | Full |
| Offline Mode | Yes (desktop app) | No |
| Template Library | Yes (built-in) | Yes |
| Export Formats | PNG, SVG, PDF, XML, HTML | PNG, PDF, Visio, SVG |
Draw.io is the best choice if you don't want to pay for premium features, despite its basic user interface. For teams needing real-time collaboration, Lucidchart is a strong alternative.
Draw.io is the most powerful free tool for creating AWS architecture diagrams. To get started:
For AI-powered generation, explore tools that can create draw.io diagrams from natural language prompts. For live infrastructure scanning, use integrations with Cloudcraft or AWS Workload Discovery.
If you're ready to start creating professional AWS architecture diagrams, try the AWS architecture diagram tool for templates and practical examples. For automated diagram generation, the AI cloud diagram generator turns AWS descriptions into visuals instantly. For end-to-end system architecture beyond AWS, the AI system architecture generator covers distributed and enterprise system designs.