Created
February 2, 2019 09:23
-
-
Save rezamt/ddbb1158e6d7b0858dda9b3d460e2db1 to your computer and use it in GitHub Desktop.
Query AWS EC2 instances
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-volumes --query 'Volumes[*].{Id:VolumeId,Size:Size,Type:VolumeType}' | |
# aws ec2 describe-instances --query Reservations[*].Instances[*].InstanceId --output text | |
# Ref: https://www.youtube.com/watch?v=nPLV7lGbmT4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment