AWS Hands-On Projects #4 – Scalable Web App with ALB & Auto Scaling

Moving on to the next project, I wanted to set up a web app with auto scaling and a load balancer. For this we will use EC2, ALB and Auto Scaling Groups, for high availability e redundancy with multiple AZs. This architecture is commonly used for production applications that need reliability and cost optimization.

Launch Templates.

Creating a launch template for the instances.

Creating the ASG.

Here you select the template to use, a VPC, subnets and security group. You configure the group size, and you also get to select/create your ALB. AWS changed how you create the ALB. Now it can be done while creating your ASG.

ASG at work.

Here you can see the ASG running, it has created two instances, and once I terminate one, it launches another to replace it.

ALB map + testing.

And here i check the resource map for the ALB showing health checks, and finally I test the ALB.

What I learned.

  • Had to make sure my instances were booting properly with web servers on startup
  • Got an ALB + Target Group health checks working end-to-end
  • Successfully triggered the ASG
  • Ran into some port exhaustion problems while trying to stress test
  • Safely shut down the project after completion to avoid costs

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *