Even though it is old version of load balancer many AWS users are still using these one.
From EC2 instance launch page, Navigate to load balancer option.
Click on Create Load Balancer.
Click on
create for Classic load balancer
Then the below screen will prompts.
Provide details:
from the below screen shot:
1.Load Balancer name: <just description for the load balancer>
2. Provide VPC details: here i am selecting default VPC.
3. Create an internal load balancer - if the check box is enable the load balancer will work for the private network. Vice versa disable the check box to make load balancer for public network.
4.Enable advanced VPC configuration: is to configure load balance for subnet VPC.
5. Add button: To enable ports for new protocol.
6.Portion 6 in the below screen: for load balancer protocol and respective port number.
7. Portion 7 in the below screen: is protocol and port number of EC2 instance.
Assign security groups:
1. in between Create a new security group and select an existing security group options, select based on you own requirement.
if No security group are available, select create a new security group option.
2.provide security group name and description for the security group.
3.provide protocol info, by clicking on the Add rule button.
Click on Next
3. Configure security settings: improve your load balancer's security, by using either HTTPS or the SSL protocol for your front-end connection.
Configure Health Check:
your load balancer will automatically perform health checks on your EC2 instances and only route traffic to instances that pass the health check. if an instance fails the health check, it is automatically removed from the load balancer. customize the health check to meet your specific needs.
Add EC2 instances:
The table below lists all your running EC2 instances. Check the boxes in the select column to add those instances to this load balancer.
1. Select the required EC2 instance for load balancing to load balancer.
2.Enable cross Zone load balancing: if the EC2 instances are available in 2 Availability zone, then need to enable this check box.
Enable connection Draining: connection health check for the EC2 instances, if the EC2 instance is not connect to load balancer with in 300 seconds. then the load balancer will treat EC2 is unhealthy.
Finally check on Next.
Add tags:
tags are used for better description of EC2 instances.
Add tags based on your own requirements.
Here i'm not adding any tags. Click on Next.
review all the parameters provided for the creation of load balancer so far. Finally Click on Create.
Conformation screen looks like below, Click on the load balancer name as shown below.
DNS name can obtain here: with this DNS name can access application.
Copy the DNS name and paste in browser to check load balancing