Skip to content

Instantly share code, notes, and snippets.

@alanwill
Created December 5, 2015 20:26
Show Gist options
  • Save alanwill/1dff25b63b5d5ca49475 to your computer and use it in GitHub Desktop.
Save alanwill/1dff25b63b5d5ca49475 to your computer and use it in GitHub Desktop.
Count the size of an S3 bucket
aws s3api list-objects --bucket BUCKETNAME --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