Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Assignment No.9: Creating a Load Balancer.

Step 1: Create Two EC2 Instance.


Step 2: Install Nginx in one server and a sample Web page on the other server.
Step 2.1: To check for nginx is working -> sudo systemctl status nginx -> sudo
systemctl start nginx
Step 2.2: To edit the nginx file -> go to cd /var/www/html -> sudo nano index.html
Step 2.3: To rename the file -> sudo mv index.filename.html index.html

Step 3: After Completing this Create a Load Balancer.


Step 3.1: Search for load balancer -> Create a load balancer -> opt for application load
balancer
Step 3.2: Load balancer name -> Scheme internet facing.

Step 4: Make a different Security Group for the load balancer -> set inbound and
outbound rules to all traffic.

Step 5: Create a Target Group and attach it with the load balancer.
Step 6: Copy the DNS URL of load balancer and run it on web browser.

Step 7: If you See the both the Web pages Working Simultaneously then the load
balancer is working successfully.
Step 8: Terminate the load balancer ->Target Group ->EC2 Instances.

You might also like