List instances in auto scaling group with boto
问题 I want to list all instances that are currently running within a auto scaling group. Can that be accomplished with boto? There must be some relation between the ASG and the instances as boto has the shutdown_instances method within the boto.ec2.autoscale.group.AutoScalingGroup class. Any pointers in the right direction is highly appreciated! 回答1: Something like this should work: >>> import boto >>> autoscale = boto.connect_autoscale() >>> ec2 = boto.connect_ec2() >>> group = autoscale.get_all