-
-
Save sebsto/947f8cf66b4b4d4e82bc to your computer and use it in GitHub Desktop.
Human Readable S3 Bucket Size (don't do that on very large buckets ! :-) )
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 $BUCKETNAME --query 'sum(Contents[].Size)' | awk '{print $0/1024/1024/1024" GB"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment