Adding EC2 instances to an Elastic Load Balancer
Once you've created an Amazon Elastic Load Balancer (ELB), follow these steps to add EC2 instances to it.
Steps:
-
Log in to the AWS Management Console and click Load Balancers.
The Load Balancers section of the console is divided into upper and lower panels. When you choose a load balancer from the upper panel, details about the load balancer appear in the lower panel.
- In the upper panel, check the check box next to your load balancer.
- In the lower panel, click the Instances tab.
- Find the box titled Instances and look for a small plus/minus sign (+/-) icon in the upper right corner of this box (you may have to scroll to the right to see it). Click the icon.
- Check the boxes next to the instances you want to add to your load balancer and click Save.
Tip:
It's recommended that you add instances from a variety of availability zones. This way you still have a running instance if a zone becomes weakened or disabled for any reason. Amazon recommends maintaining the same number of instances in each availability zone because the ELB distributes traffic equally across availability zones.
12/29/2014