Adding Targets to the Target Group for Port 5443
To add targets to the target group:
- Run the following command:
# aws elbv2 register-targets \
--target-group-arn <Target group 5443 ARN> \
--targets Id="Instance 1 ID,Port=<Node port for 5443>" Id="Instance 2 ID,Port=<Node port for 5443>" Id="Instance 3 ID,Port=<Node port for 5443>"
Where:
<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>
: The ARN of the target group you just created.
<Node port for 5443>
: Use the node port number for 5443
from the AWS worksheet.
Example:
# aws elbv2 register-targets \
--target-group-arn arn:aws:elasticloadbalancing:eu-central-1:115370811111: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