Last active
May 16, 2018 22:07
-
-
Save gsantovena/7f18457c9ba8db5ff8d9 to your computer and use it in GitHub Desktop.
Revisions
-
gsantovena revised this gist
Jun 11, 2015 . No changes.There are no files selected for viewing
-
gsantovena created this gist
Jun 11, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ aws --output text --region ${REGION} ec2 describe-instances --instance-ids $( aws --output text --region ${REGION} \ autoscaling describe-auto-scaling-instances \ --query 'AutoScalingInstances[*].[AutoScalingGroupName,InstanceId]' | grep ${ASG} | awk '{ print $2 }' ) --query 'Reservations[*].Instances[*].[InstanceId,PrivateIpAddress]'