用于描述 Auto Scaling 组的 boto 命令?

boto command for describing an Auto Scaling Group?

我正在尝试编写一个 Python 脚本来列出我的 Amazon Web Services 帐户中特定 Auto Scaling 组的暂停进程。

据我所知,使用 boto,(不是 boto3)没有命令列出自动缩放组的特定属性。

任何人都可以阐明这一点吗? 谢谢。

您可以在自动缩放组上使用鲜为人知的 suspended_processes attribute

import boto
autoscale = boto.connect_autoscale()
group = autoscale.get_all_groups(names=["mygroup"])[0]
group.suspended_processes