How sandeep-9553/aws-3-tier-web-app works
This repository demonstrates a two-tier AWS deployment: a public PHP registration application writes user records to a MySQL database in a private subnet. The README documents the surrounding network, compute, and security design; the sampled PHP source shows the registration and database interaction. Infrastructure relationships below are documented in the README, not verified from deployment code.
Main entry points: README.md Database EC2 · index.php Registration handler
Components 13
Network & Routing
- VPC
README.md - Public subnet
README.md - Private subnet
README.md - Internet gateway
README.md - NAT gateway
README.md - Public route table
README.md - Private route table
README.md
Compute & Security
- Web EC2
README.md - Database EC2
README.md - Security groups
README.md
Application & Data
- Registration handler
index.php - MySQL loginapp
README.md
Other components
- Web visitor
Connections 14
- Web visitor → Registration handler: submits form
README.md - Registration handler → MySQL loginapp: connects and inserts
index.php - VPC → Public subnet: contains
README.md - VPC → Private subnet: contains
README.md - Public subnet → Web EC2: hosts
README.md - Private subnet → Database EC2: hosts
README.md - Database EC2 → MySQL loginapp: runs
README.md - Internet gateway → VPC: attaches to
README.md - Public route table → Internet gateway: routes through
README.md - Private route table → NAT gateway: routes through
README.md - NAT gateway → Web visitor: allows outbound updates
README.md - Security groups → Database EC2: controls ingress
README.md - Security groups → Web EC2: protects instance
README.md - Web EC2 → Database EC2: connects on 3306
README.md