Adding Targets to the Target Group for frontend-ingress-controller-svc and portal-ingress-controller-svc
To add targets to the target group:
- Run the following command:
# aws elbv2 register-targets \--target-group-arn <Target group values for frontend-ingress-controller-svc and portal-ingress-controller-svc 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 values for frontend-ingress-controller-svc and portal-ingress-controller-svc 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: Modify the listeners on ports 3000 and 5443