title: how to get list of registered targets in AWS target group via CLI
body: <p>We are trying to get the state of a registered target (instance) in a target group.  This can be done with the command <code>aws elbv2 describe-target-health --target-group-arn ${TG} --targets Id=${ID},Port=${PORT}</code>, <a href="https://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-target-health.html" rel="noreferrer">reference</a>.  We are able to get the PORT via the <code>aws ecs describe-tasks --cluster $CLUSTER --tasks $task</code> command, <a href="https://docs.aws.amazon.com/cli/latest/reference/ecs/describe-tasks.html" rel="noreferrer">reference</a>.  But how can the target's instance Id be retrieved via CLI?</p>