Skip to content

Instantly share code, notes, and snippets.

@vallettea
Created August 12, 2016 14:29
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 vallettea/b63f3fa03153afe5d57505ad55b074fd to your computer and use it in GitHub Desktop.
Save vallettea/b63f3fa03153afe5d57505ad55b074fd to your computer and use it in GitHub Desktop.
Get size of S3 bucket
aws s3 ls s3://immoviz --region=eu-central-1 --recursive | grep -v -E "(Bucket: |Prefix: |LastWriteTime|^$|--)" | awk 'BEGIN {total=0}{total+=$3}END{print total/1024/1024" MB"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment