Last active
January 10, 2018 16:36
-
-
Save amui/a7fcb065e83125f07bbfae21fe30882a to your computer and use it in GitHub Desktop.
AWS CLI
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
#!/bin/bash | |
# list running instances | |
aws ec2 describe-instances --query 'Reservations[].Instances[].[InstanceId,Placement.AvailabilityZone,Tags[].Value]' --filters "Name=instance-state-name,Values=running" --region us-east-2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment