NextGen Knowledge Center

Create an Internet-Facing Load Balancer

  1. From the AWS console, select EC2.
  2. On the left panel, scroll down and select Load Balancers.
  3. Click Create Load Balancer.
  4. Select Network Load Balancer by pressing the Create button for that option.
  5. Give your load balancer a name, then select internet facing and IPv4.
  6. For Network Mapping, select the VPC that you created in the Networking section of this document.
  7. Map the desired availability zone(s) and desired subnet(s).
  8. Create listener(s) for your load balancer:
    1. First, create a target group by clicking the Create target group shortcut. It opens a new window.
    2. Choose the instance target type.
    3. Create a target group name: TargetGroupPort8080.
    4. Choose TCP port 8080.
    5. Select the VPC you created for this instance .
    6. Click Next
    7. Register your instance target, (the EC2 instance created in the previous step) by checking the box next to this instance and entering the ports for this instance (8080, 8443, etc.).
    8. Click Include as pending below.
    9. Click Create Target Group.
    10. Go back to the load balancer page .
    11. Select the reload button on Listeners and Routing to load the target group you just created.
    12. Enter 8080 for the listener port then select Add Listener.
    13. Add another listener for port 8443