What is a cloud architecture diagram?
A cloud architecture diagram shows where a system runs: which region, which networks, which servers in which subnets, and how traffic reaches them. It answers different questions from a software diagram. Is the database reachable from the internet? What happens if one data center fails? Where does a request enter?
This template draws a three-tier web app in one region, spread across two availability zones. The network comes first, as nested boxes, and the servers are placed inside it. The example uses one cloud provider’s service names on its cards. The structure is the same on any of the large providers, so rename the cards to match yours.
Draw the network first
The board’s instruction is “Draw the network first, then place each server in its subnet”. Four nested boundaries do that. The outer dashed box is the region. Inside it is the VPC with the address range 10.0.0.0/16. Inside the VPC are Availability zone A and Availability zone B, and each zone has three colored bands:
- Public subnet: 10.0.1.0/24 in zone A and 10.0.2.0/24 in zone B.
- App subnet (private): 10.0.11.0/24 and 10.0.12.0/24.
- Data subnet (private): 10.0.21.0/24 and 10.0.22.0/24.
The numbering is tidy on purpose: 1 and 2 for public, 11 and 12 for app, 21 and 22 for data. Anyone who sees an address in a log can tell its tier and its zone. Writing the ranges on the drawing also catches overlaps before they are created.
The path of a request
Step 4 is “Traffic paths”. Follow the solid arrows from the left. Users, on a browser or a mobile device, first ask DNS for shop.example. Their HTTPS request then goes to the CDN, which keeps an edge cache. The CDN serves static files from a storage bucket itself, and sends everything under /api/* through the Internet gateway to the load balancer.
The Load balancer listens for HTTPS on port 443. It is drawn across the line between the two public subnets, because it lives in both zones. From there the arrow labeled “HTTP :8080” goes down to the app servers. The load balancer is the only way in. Nothing in a private subnet has an arrow from the internet.
App servers and the data tier
Four App server cards sit in the app subnets, two in each zone. A dashed outline joins all four and carries a tag for the scaling group: 2 to 8. So the picture shows the normal state, and the label says how far the group can shrink and grow.
The data subnets hold a primary database in zone A and a Read replica in zone B. Three arrows describe how they are used: “writes” go to the primary, “reads” go to the replica, and a dashed “replication” arrow links the two. Dashed arrows also run from the app servers up to a NAT gateway in each public subnet. That is the route for outbound traffic, such as calls to a payment API, from servers that have no public address.
Supporting services and the key
Three cards stand outside the VPC but inside the region. One collects logs, metrics and alarms. One stores secrets, described as “DB password, API keys”. The third is the bucket for static files and uploads. They are managed services with no subnet of their own, and placing them outside the network boxes says exactly that.
The Key on the left explains the two line styles and the colors: a solid arrow is a request, a dashed arrow is “Outbound, replica”, a dashed box is a boundary, and each subnet type has its own fill. With six subnets on the page, the consistent fill is what lets a reader find the data tier at a glance.
How to use the cloud architecture template
- Region and VPC. Open the template, then relabel the region and replace 10.0.0.0/16 with your own range.
- Zones and subnets. Keep two zones at least. Rewrite the six subnet ranges, and delete the data band if your database is a managed service outside the VPC.
- Servers and data. Rename the cards to your provider’s services. Put your real minimum and maximum on the scaling tag.
- Traffic paths. Redraw the arrows for one request and one outbound call, and write the port on each hop.
These are the four steps printed under the title. The board has 146 elements, so it opens on the Free plan with only four elements to spare. A third zone needs the Pro plan.
When this is the right diagram, and alternatives
Use it for a security review, a cost discussion, a disaster-recovery plan, or to brief the person who will write the infrastructure code. It is about placement and reachability.
If your workloads run as containers in a cluster, the Kubernetes deployment template shows pods, services and ingress. For offices, routers and firewalls rather than cloud subnets, use the network topology template. To describe the software itself, layer by layer, pick the system architecture template.
Questions about the Cloud architecture template
What is a three-tier architecture?
A design with separate layers for presentation, application logic and data. On this board they are the public subnets with the load balancer, the private app subnets with the servers, and the private data subnets with the databases. Each tier accepts traffic only from the one above.
Why use two availability zones?
A zone is one or more data centers, and a whole zone can fail. With servers in both zones and a replica of the database in the second, the app keeps answering when one zone is lost. The load balancer simply stops sending traffic there.
What is the difference between a public and a private subnet?
A public subnet has a route to the internet gateway, so things in it can be reached from outside. A private subnet does not. On the board only the load balancer and the NAT gateways are public. App servers and databases are private.
Can I use the template for another cloud provider?
Yes. The layout of region, network, zones and subnets exists on every large provider under slightly different names. Open the template, rename the cards to the matching services and adjust the address ranges. Every element is editable.