Exploring AWS !!
1.Select Application Load Balancer.
- Choose all regions.
- Select Target Group and give a name.
- Select the instance.
- Click Create.
- Open targets and click on target.
- Go to target tab and Register.
- Select one and register then it’s created.
- Copy DNS.
- To connect another Target group, go to Target group section.
- Create Target and select instance.
- Select Target group name, click Next.
- To attach the target to load balancer, go to load balancer.
- Click on listeners, click View and Edit rule.
- Go to edit, click Edit icon and Delete previous one.
- Forward to application target and give 8.
- Click application target and give 2.
- Click on the Tick Mark.
- Click Update.
- The Load balancer is created.
Go through the below steps and try creating different Load Balancers in EC2, these are the real world scenarios mentioned. The steps below can help you understand a lot and give you a good hands-on with Load Balancers.
- Create 3 EC2 instances using Ubuntu Server AMI
- Check once the 3 instances are launched.
- Connect the first instance via Instance connect and install apache2 and edit the apache2 Welcome page by replacing it with the desired web page
- Once the new page is created, launch the same using Public IPv4 address to check if it’s working
- Similarly connect via second instance and third one too, and replace the file index.html with the desired web page
- Our second page will look like the one shown below
- The below will be the third webpage
- Go to load balancers and click on Create Load Balancers
- Click on Create Classic Load Balancer
- Give the load balancer a name and add Security group for HTTP as Anywhere and add the instances and launch the Load balancer, copy the DNS name and paste it in a new browser to check if its working
- Our classic Load balancer is working
- Click on Migrate Now to migrate the Classic Load Balancer to Application Load Balancer
- Click on Launch ALB migration Wizard
- Click on Create
- Our Application Load Balancer is created, copy the DNS name to check if its working
- Finally, Application Load Balancer is working as well
Application Load Balancer is working