Then, click Create Load Balancer. Give the load balancer a name. Leave the defaults for port 80 and click Continue.
You will change the Ping Path to just a forward slash instead of index.html. This way any request that goes to the root path will be part of the health check. Click the Continue button.
On the Add EC2 instances step, select the checkboxes next to the two EC2 instances you created before, that will be part of the load balancer, and click Continue.
Review your settings and click Create. Click Close.
The load balancer now appears in the list of load balancers. Select the checkbox next to your load balancer. A set of tabs opens with more detail about your load balancer. To test your load balancer, copy the DNS Name for the A record and paste it into the address field of your web browser. If your load balancer is working, you will see the default page of your EC2 instance connected to your load balancer.
Select the checkbox next to your load balancer and click the Yes, Delete button..