High-Availability Web App with AWS ALB & Auto Scaling – Demonstrates scalable, load-balanced infrastructure using EC2, ALB, and ASG.
ALB Distributes traffic and provides health checks Auto Scaling Group Automatically adds/removes EC2 instances based on load EC2 (Amazon Linux 2 + NGINX) Hosts the web app
- Application Load Balancer (ALB)
- Auto Scaling Group (ASG)
- NGINX on Amazon Linux 2
- Default VPC
The setup ensures high availability and automatic scaling. Auto Scaling configured to maintain 2–4 instances; scales out based on healthy target count or traffic increase.
- Create launch template with userdata to install NGINX
- Create target group for ALB health checks
- Set up Auto Scaling Group
- Verify instances healthy under ALB
• Auto Scaling Group Overview: https://github.com/paco357-coder/alb-autoscaling-project/blob/main/autoscaling%20group.png • Target Group Healthy Status: https://github.com/paco357-coder/alb-autoscaling-project/blob/main/target%20group%20healthy.png • Launch Template Creation Details: https://github.com/paco357-coder/alb-autoscaling-project/blob/main/launch%20template.png
- All resources are in the default VPC.
- Instances automatically receive public IPv4 addresses.
- NGINX is installed and enabled at launch.
- This setup can scale automatically and supports high availability.
- Security group allows HTTP (80) and SSH (22)
- All public instances receive IPv4 addresses
- Could be improved by placing instances in private subnets with a NAT gateway