Attach Load Balancer to multiple servers in Linux EC2

--

See the article click here, how to create the web page in AWS EC2 Linux. Here we are going to see, how to attach the load balancer to the corresponding servers by creating the components of Load Balancer.

  1. First, create 2 HTML files and upload them into your s3 bucket.
  2. Launch two AWS Linux EC2 instances, connect, and run the commands in the same way how I did in the previous article.

3. create two target groups for two instances.

4. create the load balancer

5. create a listener and add two rules. You cannot delete the default rule.

6. copy the DNS name of the Load Balancer

7. paste the DNS name of ALB followed by the /<server name>

--

--

No responses yet