rasensio
3/24/2016 - 2:56 PM

aws-s3-calculate-size.sh

#calculates the size of your bucket
aws s3 ls s3://<bucketname> --recursive  | grep -v -E "(Bucket: |Prefix: |LastWriteTime|^$|--)" | awk 'BEGIN {total=0}{total+=$3}END{print total/1024/1024" MB"}'