Application Loadbalancer

Select a Load Balancer type

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
  2. 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.
  3. On the navigation pane, under LOAD BALANCING, choose Load Balancers.
  4. Choose Create Load Balancer.
  5. For Application Load Balancer, choose Create.

ELB Type

Configure Your Load Balancer and Listener

  1. For Name, type a name for your load balancer Name must be unique, maximum 32 characters, contain only alphanumeric characters and hyphens, must not begin or end with hyphen, and must not begin with “internal-”
  2. For Schema and IP address type, keep the default values
  3. For Listeners, keep the default.
  4. For Availability Zones, select VPC that you used for your EC2 instances.
  5. Choose Next: Confgiure Security Settings.
  6. For this tutorial, you are not creating an HTTPS listener. Choose Next: Configure Security Groups.

ALB Details

Configure a Security Group for Your Load Balancer

The security group for your load balancer must allow it to communicate with registerd targets both the listener port and the health check port.

  1. Choose Create a new security group or Select an existing security group.
  2. For Create New type a name for your security group or if you Select an existing make sure that your security group allow traffic to the load balancer listerner port.
  3. Choose Next: Configure Routing.

ALB Security Group

Configure Your Target Group

Create a target group, which is used in request routing.

  1. For Target group, keep te default, New target group.
  2. For Name, type a name for the the new target group.
  3. Keep the default target type(Instance), protocol (HTTP), and port (80).
  4. For Health checks, keep the default settings.
  5. Choose Next: Register Targets.

ALB Routing

Register Targets with Your Target Group

  1. For Instances, select one or more instances.
  2. Keep the default port (80) and choose Add to registered.
  3. When you have finished selecting instances, choose Next: Review.

ALB Targets

Create Your Load Balancer

  1. On the Review page, choose Create.
  2. After you are notified that your load balancer was created, choose Close.