Create a target group for your Gateway Load Balancer - Elastic Load Balancing

Create a target group for your Gateway Load Balancer

You register targets for your Gateway Load Balancer using a target group.

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

You can add or remove targets from your target group at any time. For more information, see Register targets. You can also modify the health check settings for your target group. For more information, see Modify health check settings.

New EC2 experience
To create a target group using the new EC2 experience
  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. Basic configuration

    1. For Choose a target type, select Instances to specify targets by instance ID, or select IP addresses to specify targets by IP address.

    2. For Target group name, enter a name for the target group. This name must be unique per Region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

    3. Verify that Protocol is GENEVE and Port is 6081. No other protocols or ports are supported.

    4. For VPC, select the virtual private cloud (VPC) with the security appliance instances to include in your target group.

  5. (Optional) For Health checks, modify the settings and advanced settings as needed. If health checks consecutively exceed the Unhealthy threshold count, the load balancer takes the target out of service. If health checks consecutively exceed the Healthy threshold count, the load balancer puts the target back in service. For more information, see Health checks for your target groups.

  6. (Optional) Expand Tags and add the tags that you need.

  7. Choose Next.

  8. For Register targets add one or more targets as follows:

    • If the target type is Instances, select one or more instances, enter one or more ports, and then choose Include as pending below.

    • If the target type is IP addresses, select the network, enter the IP address and ports, and then choose Include as pending below.

  9. Choose Create target group.

Old EC2 experience
To create a target group using the old EC2 experience
  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, enter a name for the target group. This name must be unique per Region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

  5. For Protocol, use GENEVE. With the GENEVE protocol, Port must be 6081.

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

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

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

  9. (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.

  10. (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.