Step 1: Configure a Load Balancer and a Listener

First, provide some basic configuration information for your load balancer, such as
a name,
a network, and one or more listeners. A listener is a process that checks for connection
requests.
It is configured with a protocol and a port for connections from clients to the load
balancer.
For more information about supported protocols and ports, see Listener Configuration.

For Scheme, an internet-facing load balancer routes
requests from clients over the internet to targets. An internal load
balancer routes requests to targets using private IP addresses.

For Listeners, the default is a listener that accepts
TCP traffic on port 80. You can keep the default listener settings, modify
the protocol, or modify the port. Choose Add to add
another listener.

For Availability Zones, select the VPC that you used
for your EC2 instances. For each Availability Zone that you used to launch
your EC2 instances, select an Availability Zone and then select the public
subnet for that Availability Zone. To associate an Elastic IP address with
the subnet, select it from Elastic IP.

Choose Next: Configure Routing.

Step 2: Configure a Target Group

You register targets, such as EC2 instances, with a target group. The target group
that
you configure in this step is used as the target group in the listener rule,
which forwards requests to the target group. For more information, see Target Groups for Your Network Load Balancers.

To configure your target group

For Target group, keep the default, New target group.

For Name, type a name for the target group.

Set Protocol and Port as needed.

For Target type, select instance to specify targets
by instance ID or ip to specify targets by IP address.

For Health checks, keep the default health check settings.

Choose Next: Register Targets.

Step 3: Register Targets with the Target Group

You can register EC2 instances as targets in a target group.

To register targets by instance ID

For Instances, select one or more instances.

Keep the default instance listener port or type a new one and choose
Add to registered.

When you have finished registering instances, choose Next: Review.

To register targets by IP address

For each IP address to register, do the following:

For Network, if the IP address is from a subnet of
the target group VPC, select the VPC. Otherwise, select Other
private IP address.

For Availability Zone, select an Availability
Zone or all. This determines whether the target
receives traffic from the load balancer nodes in the specified
Availability Zone only or from all enabled Availability Zones. This
field is not displayed if you are registering IP addresses from the
VPC. In this case, the Availability Zone is automatically
detected.

For IP, type the address.

For Port, type the port.

Choose Add to list.

When you have finished adding IP addresses to the list, choose
Next: Review.

Step 4: Create the Load Balancer

After creating your load balancer, you can verify that your EC2 instances have passed
the initial
health check and then test that the load balancer is sending traffic to your EC2 instances.
When
you are finished with your load balancer, you can delete it. For more information,
see
Delete a Network Load Balancer.

To create the load balancer

On the Review page, choose Create.

After the load balancer is created, choose Close.

On the navigation pane, under LOAD BALANCING, choose
Target Groups.

Select the newly created target group.

Choose Targets and verify that your instances are
ready. If the status of an instance is initial, it's probably
because the instance is still in the process of being registered, or it has
not passed the minimum number of health checks to be considered healthy.
After the status of at least one instance is healthy, you can test your load
balancer.

Javascript is disabled or is unavailable in your browser.

To use the AWS Documentation, Javascript must be enabled. Please refer to your browser's
Help pages for instructions.