Suppose i create an auto scaling group and link a target group.
Is it possible to know from my target group, that it is linked with an auto scaling group?
Suppose i create an auto scaling group and link a target group.
Is it possible to know from my target group, that it is linked with an auto scaling group?
You can retrieve the target group(s) linked to an autoscaling group:
aws autoscaling describe-auto-scaling-groups --auto-scaling-group-names "NAME" --query 'AutoScalingGroups[].TargetGroupARNs[]'
if this is not empty, then there are one or more target groups associated to the autoscaling group.
You can retrieve the target group from the autoscaling group, but not the other way around.