Created
October 18, 2017 13:11
-
-
Save frosforever/464a717880dc4125aa081292bb985357 to your computer and use it in GitHub Desktop.
recursive size of contents in bucket prefix
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 s3api list-objects --bucket BUCKET_NAME --prefix "whateverprefix/" --output json --query "[sum(Contents[].Size), length(Contents[])]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
also to get total usage of
gp2
volumes: