This lab is currently in Beta, content may be updated as we refine the material
LABADVANCED

Auto Scaling on SQS Queue Depth

Build an event-driven auto-scaling pipeline where a Lambda producer floods an SQS queue and CloudWatch alarms scale EC2 workers up and down automatically.

45 minutes
infrastructure/aws
Auto Scaling on SQS Queue Depth - Platform Engineering Hands-On Lab Icon

Lab Overview

Build a complete event-driven scaling pipeline on AWS. A Lambda function produces messages into an SQS queue, EC2 workers in an Auto Scaling Group consume them, and CloudWatch alarms drive step scaling policies to add or remove instances based on queue depth.

You'll learn to:

  • Create an SQS standard queue and inspect its metrics
  • Package and deploy a Python Lambda function with an IAM execution role
  • Build a VPC with a public subnet for an Auto Scaling Group
  • Write a launch template with user-data that installs an SQS consumer
  • Configure CloudWatch alarms on ApproximateNumberOfMessagesVisible
  • Create step scaling policies for scale-out and scale-in
  • Observe the full cycle: queue flood, alarm, scale-out, drain, scale-in

Key Resources:

What You'll Learn

Create and configure an SQS standard queue

Deploy a Lambda function with a custom IAM execution role

Build a VPC, launch template, and Auto Scaling Group

Configure CloudWatch alarms based on SQS queue metrics

Implement step scaling policies for automatic scale-out and scale-in

Observe the full event-driven scaling lifecycle

Prerequisites

Basic AWS CLI familiarity

Understanding of EC2 instances and security groups

Familiarity with IAM roles and policies

Technologies Covered

awssqsauto-scalingcloudwatchlambdaec2event-driven

Part of a Course

This lab is part of the AWS Solutions Architect Associate (SAA-C03) course

View All Courses

Choose your plan

Simple, Transparent Pricing

Unlock full access to TeKanAid courses, labs, and bootcamps

MonthlyQuarterly

Pro

Course content without labs

$59/month

Renews automatically. Cancel anytime.

Final price verified at checkout.

  • Full access to all courses
  • Progress tracking
  • Certificate of completion
  • Community access
  • Bootcamp participation
  • New content access
Recommended

Premium

Full access with hands-on labs

$99/month

Renews automatically. Cancel anytime.

Final price verified at checkout.

  • Everything in Pro
  • Unlimited hands-on labs
  • Lab AI Assistant
  • Accelerator bootcamps with live office hours
  • Priority support

Prefer a single course?

Purchase individual courses for a one-time fee of $79. Full access to course content, quizzes, certificates, and community features, lab access is not included.

Browse Courses

Try it free, no credit card

Three free ways to start. All bridge into the paid Premium catalog when you're ready.

Not ready to commit? The crash course is email-only. No academy account required.

Ready to Get Started?

Start this hands-on lab and build real-world Platform Engineering skills

Get Access Now