samedi 28 mars 2015

How can I retrieve more than 50 Autoscaling Groups via Python Boto

Hello and thanks in advance for any help...


I am trying to use boto to retrieve a list of all Autoscaling groups in my account. I have 164 Autoscaling Groups but the boto script is only retrieving the first 50 in similar fashion to the console.



#!/usr/bin/python

from boto.ec2.autoscale import AutoScaleConnection
conn = AutoScaleConnection('ABCDEFGHIJKLMNOPQRS', 'TUVWXYZ/ABCDEFGHIJKLMN')

agroups = conn.get_all_groups()
print agroups


Any ideas as to how I can pull the entire list of my AS groups?





Aucun commentaire:

Enregistrer un commentaire