Skip to content

Instantly share code, notes, and snippets.

@sebsto
Forked from anamorph/gist:699dbae01ff0f4942acc
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebsto/947f8cf66b4b4d4e82bc to your computer and use it in GitHub Desktop.
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 ! :-) )
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