Created
November 4, 2013 12:52
-
-
Save chtz/7302007 to your computer and use it in GitHub Desktop.
Sample AWS EC2 cli-command: display instance id, public dns and state of all instances in a region (leverages boto/jmespath query syntax)
This file contains 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 --output text --query "Reservations[*].Instances[*].{InstanceId:InstanceId, State: State.Name, DNS: PublicDnsName}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment