How to create Load Balancer and attach it with the instance?

From PheonixSolutions
Jump to navigation Jump to search

Step 1:

Log in to the AWS console

Step 2:

Select EC2 service and click Load balancers

Step 3:

Click Create load balancer

Step 4:

Click create Application Load Balancer

Step 5: Fill the necessary details

1. Basic configuration:

1. Give load balancer name

2. Select scheme

3. Also click on IP address type you want

2. Network mapping:

1. Select VPC
2. Select availability zone

3. Security groups - Select the necessary security groups

4. Listeners and routing - Add the listener port and select the target group if you created it already.

If the target group is not created click create target group and follow the below steps.

  1. Basic configuration

    1. Choose a target type


    2. Give Target group name and select the Protocol, also port


    3. Select VPC and Protocol version


    4. Then click Next at the bottom right page

    5. Then attach the instance to the target group by clicking Register targets.

    6. Search and select the instance you want to attach

    Then give port number and click Include as pending below

    7. After including click Register pending targets

After creating the Target group, Select the newly created target group on Listeners and routing in load balancer creation.

5. Verify the details and Click Create load balancer.