Last active
January 27, 2020 11:07
-
-
Save breenie/0df4bdebd0183f2a9c8bc66b03598885 to your computer and use it in GitHub Desktop.
Get AWS S3 bucket usage
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
# Cribbed from https://serverfault.com/questions/84815/how-can-i-get-the-size-of-an-amazon-s3-bucket | |
aws s3api list-objects --bucket ${BUCKET} --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