πŸ› οΈ Lab 3 β€” VPC + RDS Two-Tier App

Type: Guided lab Time: ~90 minutes Difficulty: Intermediate Cost: Free (within free tier β€” delete RDS promptly after the lab)


🎯 What you’ll build

Build the most important pattern in cloud: a two-tier application. Custom VPC with public + private subnets, EC2 web server in the public subnet, RDS MySQL database in the private subnet. The exact same architecture every fintech and SaaS app uses.

πŸ“‹ Prerequisites

  • Lab 1 + Lab 2 complete
  • Comfortable with SSH and the EC2 launch wizard
  • You’ve read the Week 2 slides on VPC + Security Groups

πŸ› οΈ AWS Services used

  • VPC β€” custom network with subnets, route tables, IGW
  • EC2 β€” web tier (public subnet)
  • RDS β€” MySQL database (private subnet, Multi-AZ)
  • Security Groups β€” SG-to-SG references for tight security

πŸ“– The full walkthrough

Open Week2_Lab3_VPC_RDS.html in your browser. It’s a complete step-by-step guide with screenshots, code snippets, and inline hints.

πŸ’‘ The HTML file is self-contained β€” no install, no internet needed once you’ve cloned the repo. Just double-click to open in your browser.


πŸ†˜ If you get stuck

  1. Re-read the relevant step in the HTML walkthrough
  2. Check the Common Mistakes callouts (red boxes in the walkthrough)
  3. Expand the πŸ’‘ Hint sections for guidance
  4. WhatsApp the group with a screenshot of the error
  5. Tag your post with #week2done

πŸŽ“ Submission

  1. Screenshot of your EC2 web server running
  2. Screenshot of mysql> prompt showing you successfully connected to RDS from EC2
  3. Result of a SELECT query you ran on a table you created

⬅️ Back to Week 2