In this lab, I will be creating Elastic Load Balancing. This is where traffic is spread out over multiple instances.
Creating an Elastic Load Balancer
This is done is the EC2 Service.
I then go into the Load Balancers tab and select create new load balancer, I select classic load balancer.
I encountered an issue where I have to select a group for load balancing which the lab already made. after some research, I’m confident the only port I need to add is Port 443.
After some playing around I got it to work.
My assumptions got me into a bit of a mess because I assumed that I would need to be using HTTPS which then requires an SSL certificate and since I do not have one I was stumped.
I then actually stopped and read each prompt carefully and I found that the prompt that I thought was telling me the connection needed to be secured was just a suggestion, not a must.
The reason I had done this was that the lab already had a group made for this and I was trying to see what they would have added, And naturally, I thought of opening ports
So this is how my ports are now.
I now select my instance to add the load balance too, I add it to my already running webserver I created.
I just review my choices to make sure it adds up to the lab.
After the load balancer is created you can check it by using the DNS link in the description.
I am now faced with an issue where I can not connect to the Load Balance, I suspect it is a port issue. I tried pinging it with not luck.
I found the issue! I changed the source address to 0.0.0.0/0 and allow from anywhere and it works!
I don’t know how I missed that but I stepped back, and when thought logically about what would be blocking me from connecting.