Adding Targets to the Target Group for Port 5443

To add targets to the target group:

  1. Run the following command:
    # aws elbv2 register-targets \

    --target-group-arn <Target group 5443 ARN>\

    --targets Id="Instance 1 ID"

    Id="Instance 2 ID"

    Id="Instance 3 ID"

Parameters:

<Instance x ID>: Use the instance IDs you gathered for instances of the Auto Scaling group. Refer to the AWS worksheet.

<Target group 5443 ARN>: ARN of the target group you just created.

Example:

 # aws elbv2 register-targets \
--target-group-arn arn:aws:elasticloadbalancing:eu-central-1:115370848038:targetgroup/srgdemo-5443-tg/a096cb67c2f9144d \
--targets Id="i-05662f9ef84c182ca,Port=31704" Id="i-07cfcd6716e9890b5,Port=31704" Id="i-08d819b5ccabe83cb,Port=31704"

Next Step: Adding a Listener for Port 5443 to the ALB