Adding Targets to the Target Group for Ports 443, 32081, or 32080
To add targets to a target group:
- Run the following command:
aws elbv2 register-targets \
--target-group-arn <Target group 443 ARN> \
--targets Id="Instance 1 ID" \
Id="Instance 2 ID" \
Id="Instance 3 ID" - Repeat Step 1 for port 32081.
- Repeat Step 1 for port 32080.
Where:
<Instance x ID>: Use the instance IDs you gathered for instances of the Auto Scaling group. Refer to AWS worksheet for values.
<Target group 443 ARN>: Use the ARN of the target group you just created.
<Node port for 443>: Use the node port number for 443 from the AWS worksheet.
Example:
aws elbv2 register-targets \ --target-group-arn arn:aws:elasticloadbalancing:us-west-2:062373060138:targetgroup/rcchaincta-443-tg/4fcb60e16be46ada \ --targets Id="i-01eb0557e54d10e7b,Port=443" Id="i-062e428614279bdee,Port=443" Id="i-0d0223498bfff57d0,Port=443"
Next Step: Add a Listener for Ports 443, 32081, and 32080 to the ALB