The final chapter ties compute and storage together with networking and security, then the mental checklist AWS itself recommends. These are the topics that separate "it works on my account" from "it's production-ready".
VPC — your private network
A VPC (Virtual Private Cloud) is your own isolated network in AWS. You split it into subnets: public subnets (reachable from the internet, for load balancers) and private subnets (for databases and app servers that shouldn't be exposed):
- Put anything internet-facing in a public subnet behind a load balancer.
- Put databases and internal services in private subnets — no direct internet route.
Security groups
A security group is a virtual firewall on each resource. It's default-deny: nothing is allowed until you open a port. Open only what's needed, only to who needs it:
| Rule | Meaning |
|---|---|
| Allow 443 from 0.0.0.0/0 | HTTPS from anyone (a web server) |
| Allow 5432 from app-SG | Database reachable only from the app tier |
| Allow 22 from your IP | SSH only from your address |
Watching cost
The cloud's pay-as-you-go model cuts both ways — an idle-but-running instance still bills. Protect yourself:
- Set a budget alert on day one so a surprise bill emails you early.
- Stop or terminate resources you're not using — especially after experiments.
- Tag resources by project so you can see where money goes.
The Well-Architected pillars
AWS distils good design into six pillars — a useful review checklist for any system:
- Operational excellence, Security, Reliability
- Performance efficiency, Cost optimisation, Sustainability
Practice
Sketch the architecture for a small web app: a load balancer in a public subnet, app servers and an RDS database in private subnets, S3 for uploads, and security groups that expose only what's necessary. Set a budget alert on your account.
Key takeaways
- 01A VPC is your isolated network; split it into public (internet-facing) and private (internal) subnets.
- 02Security groups are per-resource firewalls, default-deny — open only the ports you need.
- 03Never expose SSH or database ports to the whole internet.
- 04Set budget alerts and stop unused resources — pay-as-you-go bills even idle instances.
- 05Review designs against the Well-Architected pillars: ops, security, reliability, performance, cost, sustainability.
