How to get all the registered targets from a target group via AWS CLI command? FYI, describe health is not working. Targets type: IP
CodePudding user response:
I need only targets ip addresses
That is exactly what your command aws elbv2 describe-target-health --target-group-arn ${TG} --query 'TargetHealthDescriptions[*].Target.Id'
is going to do for target types if IP. Since you are using "Targets type: IP" there are no problems with your command.
CodePudding user response:
aws elbv2 describe-target-health --target-group-arn ${TG} --query 'TargetHealthDescriptions[*].Target.Id'