Created
June 1, 2017 16:04
-
-
Save scottfoster/32c537199333be8e2c3f0e0e74b8fc7c to your computer and use it in GitHub Desktop.
aws servers bash profile
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
servers() { | |
aws ec2 describe-instances --profile munzee --region us-east-1 --filters "Name=instance-state-name,Values=running" --query 'Reservations[].Instances[].[ [Tags[?Key==`Name`].Value][0][0],PrivateIpAddress ]' --output table | sort -n -k 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment