`
j_q
  • 浏览: 8084 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

获得EC2 auto scaling 组活动信息

阅读更多
#!/usr/bin/env python
# -*- coding: UTF8 -*-

import boto

conn = boto.connect_autoscale()
connec2 = boto.connect_ec2()

groups = conn.get_all_groups()
print len(groups)
actives = conn.get_all_activities('autoscaling-group-name')

for active in actives:
    print active
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics