2017-01-23 8 views
0

Amazon Web Servicesアカウントで特定のAuto Scaling Groupの中断されたプロセスを一覧表示するPythonスクリプトを作成しようとしています。自動スケーリンググループを記述するbotoコマンド?

boto(Not boto3)を使用すると、自動スケーリンググループの特定のプロパティを一覧表示するコマンドはありません。

誰もがこれに光を当てることができますか?おかげさまで

+1

[ドキュメント](http://boto.cloudhackers.com/en/latest/ref/autoscale.html#boto.ec2.autoscale.AutoScaleConnection.get_all_groups) –

答えて

1

ほとんど知られていないsuspended_processes attributeをオートスケールグループに使用できます。

import boto 
autoscale = boto.connect_autoscale() 
group = autoscale.get_all_groups(names=["mygroup"])[0] 
group.suspended_processes 
関連する問題