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.

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

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.