Here’s a summary of what I did:
- Created 2 EC2 Instances:These are your servers.
- Launched an Application Load Balancer:This helps distribute incoming traffic evenly across your servers.
- Created a Security Group:This allows only HTTP traffic to your servers.
- Grouped Instances in a Target Group: This is a set of servers the load balancer will distribute traffic to.
- Created an Auto Scaling Group (ASG): This adjusts the number of servers automatically based on demand.
- Created a Launch Template: This template provides the ASG with the necessary instructions to create new EC2 instances.
- Attached ASG to the Load Balancer: This ensures traffic is evenly distributed across the instances, and new instances are created or deleted as needed.
In essence, I set up a system where the load balancer distributes traffic and the ASG ensures the right number of servers are running based on current demand.
Top comments (0)