Introduction

A two-tier architecture on AWS — the bread and butter of real-world cloud deployments. Here's the idea:



Tier 1 (Public): An EC2 instance sitting in a public subnet, running a Flask web application. This is what users hit.

Tier 2 (Private): An RDS MySQL database sitting in private subnets. No direct internet access. Only the EC2...