Created
December 28, 2013 08:41
-
-
Save bashtoni/8157406 to your computer and use it in GitHub Desktop.
Find all EC2 instances created by a CloudFormation stack and print their IPs
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 ec2 describe-instances --filters Name=tag:aws:cloudformation:stack-name,Values=${STACKNAME} --output text --query 'Reservations[*].Instances[*].PrivateIpAddress' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment