Created
November 29, 2019 04:34
-
-
Save drincruz/01f942bb13d6505e0d984e7d73903f97 to your computer and use it in GitHub Desktop.
aws CLI Helpful commands
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
# Output the Public IP, Private IP, Instance Name | |
aws --profile default ec2 describe-instances --query 'Reservations[].Instances[].[PublicIpAddress,PrivateIpAddress,Tags[?Key==`Name`]| [0].Value]' --output=table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment