Stop 15 · Certifications, Portfolio & InterviewsTopics · 5/10

Drawing AWS Architecture Diagrams

Part of the AWS Roadmap

In short

A good diagram explains your project in ten seconds. In design interviews you'll draw one live, and in your portfolio it's often the first thing a recruiter looks at.

Clear architecture diagrams show Regions, VPCs, subnets, Availability Zones and service icons with traffic flow. They make your projects understandable in seconds and are expected in design interviews.

The jaadu stands at a large whiteboard drawing coloured lines and circles that look like a metro map, with a marker in each hand.

Think of it like this

The metro route map

The Delhi Metro map isn't drawn to scale. It shows lines, stations and interchanges clearly, so a first-time visitor knows where to change trains. A good AWS diagram does the same: Region, VPC, subnets and AZs as boxes, services as icons, and arrows showing how a request travels. Clarity matters more than detail.

Watch it happen

Nesting boxes in the right order

AWS Cloud
Region: ap-south-1
VPC 10.0.0.0/16
AZ a
AZ b
Public subnet: ALB
Private subnet: app, DB
Public subnet: ALB
Private subnet: app, DB standby

1/4Outer boxes first: the AWS Cloud and the Region. Global services like CloudFront and Route 53 sit outside the Region box.

The big ideas

What you need to know

Use official icons

AWS publishes an architecture icon set. draw.io (diagrams.net), Excalidraw, Lucidchart and Figma all support it.

Arrows tell the story

Number the arrows for the main request path: user, Route 53, CloudFront, ALB, app, database.

Boxes show boundaries

Region, VPC, AZ and subnet boxes show what's isolated, what's highly available and what's public.

Diagrams as code

Tools like the Python diagrams library generate images from code, so diagrams stay in Git next to your IaC.

See it in code

Walk through the code

python
1from diagrams import Cluster, Diagram2from diagrams.aws.compute import ECS3from diagrams.aws.database import RDS4from diagrams.aws.network import CloudFront, ELB, Route535 6with Diagram("Shop on AWS", filename="architecture", show=False, direction="LR"):7    dns = Route53("Route 53")8    cdn = CloudFront("CloudFront")9 10    with Cluster("ap-south-1 / VPC"):11        alb = ELB("ALB")12        with Cluster("Private subnets"):13            app = [ECS("api task a"), ECS("api task b")]14            db = RDS("PostgreSQL Multi-AZ")15 16    dns >> cdn >> alb >> app >> db

1/5Import the diagram helpers and the AWS icons you need.

The open-source Python diagrams library (pip install diagrams, which also needs Graphviz installed). It writes architecture.png next to the script.

Save yourself the pain

Common mistakes

Oops

Drawing every service you used in one giant picture with arrows everywhere.

Do this instead

Show the main request path clearly. Put extra details, like CI/CD or monitoring, in a second small diagram.

Oops

Placing a database in a public subnet in the diagram because it was easier to draw.

Do this instead

Diagrams are read as claims about your design. Draw it where it actually runs, and fix the design if that's wrong.

Your mission

Diagram your best project

~40 min

Quick check

Where should CloudFront usually appear in an AWS diagram?

Go deeper

  1. 1Download the official AWS Architecture Icons and use them in draw.io (diagrams.net).
  2. 2Redraw one of your projects with VPC, subnet and AZ boundaries shown correctly.
  3. 3Add the diagram to the top of each project README.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge