Zurien Blog

Let’s talk about AWS basic networking! We will be introducing instances and test the web applications. Then, we will provision AWS Elastic Load balancer (ELB). ELB has 3 Types: Application, Network and Gateway Load Balancer but we will be focusing more on Application Load Balancer.

Upon creation of these Application load balancer we will associate the Virtual Private Cloud(VPC), Security Groups (SG), Target groups and many more!

AWS Application Load Balancer Configuration

Here is a guide or steps to create ELB, Application Load Balancer:

Basic Configuration, Network Mapping and Security Group:

  1. Go to EC2 managment console page and on the left pane, click Load Balancer under Load Balancing
  2. By default, there are no Load Balancers created. Click Create Load Balancer located on the upper right of the main pane.
  3. This takes you to the Load Balancer creation page. Select Application Load Balancer since our application runs in HTTP/HTTPS
  4. Assign Load Balancer name, select the VPC used the EC2 instances, Select Availability Zone (s) and their public subnets.
  5. Under Security Group (SG), create a new one if necessary. Otherwise, select the correct SG for your ELB.

Listeners and Routing

  1. Select HTTP Protocol and Port 80 (This can be HTTPS/443)
  2. Since we still don’t Target Port, we will create one. Click Create Target Group. This will open a new tab.
  3. Choose Instance as target type and assign Target group name. Make sure protocol/port are HTTP/80. Make sure correct VPC is applied and click Next. This will take you to Register targets page.
  4. Select EC2 instance name where you Load Balancer will forward the traffic to. Make sure port is set to 80 and click Include as pending below.
  5. Verify new target is added with the Health Status Pending and click Create target group.
  6. Back to Listening and routing, select the newly created Target group (hit refresh icon if its still not available) and click Create load balancer.
  7. Click View load balancer. You will see the status is in Provisioning state as it may take a minute or two for the load balancer to be created.

Test Elastic Load Balancer

  1. From the same page, click the Application Load Balancer name
  2. You will see the DNS name, this is the actual URL we will be using to test the load balancer.
  3. Copy the URL and paste it to the web browser address bar
  4. You should get the same page of our EC2. Make sure that the page is using Load Balancer DNS URL.

Click below to access the video version and consider subscribing.

Leave a Reply

Your email address will not be published. Required fields are marked *