Day 41: Setting up an Application Load Balancer with AWS EC2

Task :Create an Application Load Balancer (ALB) in EC2 using the AWS Management Console.
Let's dive right in!
To create an ALB, we'll need a couple of things: EC2 instances and a target group.
1. Creating a target group:
Go to the EC2 dashboard and click on "Target Groups" in the left panel.

- Click on "Create target group."

- Select "Instances" and give your target group a name.

- Click "Next" and select the instances you want to add to the load balancer.

- Create the target group.

Creating the Application Load Balancer:
- From the left panel, select "Load Balancers."

- Click on "Create Load Balancer" and choose "Application Load Balancer."

- Enter a name for your load balancer and select "Internet-facing" to allow external access.
- Choose the desired availability zones to scale your web app.

- For security purposes, create a new security group for the load balancer and set inbound rules accordingly.

- Select the just created security group for the load balancer.

- Choose the target group you created earlier.


That's it! You've successfully created your Application Load Balancer. Make sure the state of the ALB changes to "Active" from "Provisioning." You can test the load balancing by using the DNS provided.
Remember, the ALB will handle the load balancing for your web app automatically.
That's was it for today.See you tomorrow.



