Created
April 4, 2014 09:22
-
-
Save siroken3/9971095 to your computer and use it in GitHub Desktop.
指定したロードバランサーにぶら下がっているec2インスタンスid一覧を取得する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aws elb describe-load-balancers --region ap-northeast-1 | jq -r '.LoadBalancerDescriptions[] | select(.LoadBalancerName == ロードバランサー名) | .Instances[].InstanceId' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment