Menu
Elastic Load Balancing
Network Load Balancers

Create a Target Group for Your Network Load Balancer

You register targets for your Network Load Balancer with a target group. By default, the load balancer sends requests to registered targets using the port and protocol that you specified for the target group. You can override this port when you register each target with the target group.

After you create a target group, you can add tags.

To route traffic to the targets in a target group, create a TCP listener and specify the target group in the default action for the listener. For more information, see Listener Rules.

You can add or remove targets from your target group at any time. For more information, see Register Targets with Your Target Group. You can also modify the health check settings for your target group. For more information, see Modify the Health Check Settings of a Target Group.

To create a target group using the console

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, under LOAD BALANCING, choose Target Groups.

  3. Choose Create target group.

  4. For Target group name, type a name for the target group.

  5. For Protocol, select TCP.

  6. (Optional) For Port, modify the default value as needed.

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

  8. For VPC, select a virtual private cloud (VPC).

  9. (Optional) For Health check settings and Advanced health check settings, modify the default settings as needed. Choose Create.

  10. (Optional) Add one or more tags as follows:

    1. Select the newly created target group.

    2. Choose Tags, Add/Edit Tags.

    3. On the Add/Edit Tags page, for each tag that you add, choose Create Tag and then specify the tag key and tag value. When you have finished adding tags, choose Save.

  11. (Optional) To add targets to the target group, see Register Targets with Your Target Group.

To create a target group using the AWS CLI

Use the create-target-group command to create the target group, the add-tags command to tag your target group, and the register-targets command to add targets.