π οΈ Lab 5 β Auto-Scaling + Application Load Balancer
π οΈ Lab 5 β Auto-Scaling + Application Load Balancer
Type: Guided lab Time: ~90 minutes Difficulty: Intermediate Cost: ~$1 if cleaned up promptly. β οΈ ALB costs $0.50/day β DELETE IT after the lab
π― What youβll build
Build a load-balanced app that auto-scales from 2 β 6 EC2 servers when CPU spikes, then scales back down when traffic dies. The exact same pattern Netflix, Spotify, and your bank use.
π Prerequisites
- Comfortable launching EC2 instances
- Understanding of security groups
- A clear schedule for cleanup β donβt start this lab if you canβt clean up the same day
π οΈ AWS Services used
- EC2 Launch Templates β blueprint for new instances
- Auto Scaling Group (ASG) β min 2 / desired 2 / max 6
- Target Group β list of instances the ALB sends to
- Application Load Balancer (ALB) β Layer 7 traffic distribution
- CloudWatch β CPU metrics that trigger scaling
π The full walkthrough
Open Week3_Lab5_AutoScaling_ALB.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
- Re-read the relevant step in the HTML walkthrough
- Check the Common Mistakes callouts (red boxes in the walkthrough)
- Expand the π‘ Hint sections for guidance
- WhatsApp the group with a screenshot of the error
- Tag your post with
#week3done
π Submission
- Screenshot of your ALB DNS name in the browser (refresh to see different instance IDs)
- Screenshot of the ASG Activity history showing BOTH a scale-out AND scale-in event
- Screenshot proving cleanup is complete (EC2 β Instances showing 0 running)
β¬ οΈ Back to Week 3