Before you begin
Ensure you have configured/prepared the following before creating your load balancer- Ensure your VPC and EC2 instances are prepared. Assistance for AWS VPC and instance configuration.
- Launch the EC2 instances that you plan to register with your load balancer. Ensure that the security groups for these instances allow HTTP access on port 80.
Create and set your load balancer type
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
On the navigation bar, choose a Region for your load balancer. Be sure to select the same Region that you selected for your EC2 instances.

Configure your load balancer
We now configure the load balancer, this includes information such as a name, a network, and a listener. A listener is a process that checks for connection requests. It is configured with a protocol and a port for front-end (client to load balancer) connections and a protocol and a port for back-end (load balancer to instance) connections. In this tutorial, you configure a listener that accepts HTTP requests on port 80 and sends them to your instances on port 80 using HTTP.Basic configuration
Network mapping
There are two components for Network mapping which are the VPC selection and Mapping configuration:- Select a VPC which will align to your target groups. Ensure you select the right VPC at this stage as you cannot change the VPC after configuring your load balancer.
- For Mappings, select at least one available public subnet in the dropdown box. To improve the availability of your load balancer, select more than one public subnet. You can add at most one subnet per Availability Zone.

Security groups
Listeners and routing
A listener is a process that checks for connection requests, using the protocol and port you configure. Traffic received by the listener is then routed per your specification. You can specify multiple rules and multiple certificates per listener after the load balancer is created.Select a Protocol, Port and **Default action/**target group for each listener. These settings are critical to ensure that traffic routing to your EC2 instance is properly configured to suit your load balancer use case. Ensure that your target groups have been properly configured as to route traffic back to your EC2 instance. 

Summary and creation
Verify your load balancer
After at least one of your EC2 instances is in service, you can test your load balancer. Copy the string from DNS name (for example, my-load-balancer-1234567890.us-west-2.elb.amazonaws.com) and paste it into the address field of an internet-connected web browser. If your load balancer is working, you see the default page of your server.








