0

How can I check whether an AWS Elastic Load Balancer, Application Load Balancer or Network Load Balancer is associated with any Auto-Scaling group by passing the Load Balancer name or Load Balancer ARN using Boto3?

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Tes M
  • 51
  • 7

1 Answers1

1

The describe_auto_scaling_groups() command returns a list of LoadBalancerNames.

Therefore, you will need to:

  • Call describe_auto_scaling_groups() to obtain a list of Auto Scaling groups
  • Loop through each returned group and look at the LoadBalancerNames list
  • Compare the entries with your Load Balancer name of interest
John Rotenstein
  • 241,921
  • 22
  • 380
  • 470