aws s3 ls s3://bucket/folder —recursive | awk ‘BEGIN {total=0}{total+=$3}END{print total/1024/1024” MB”}’
Jun 30, 2015 / S3
Finding size of AWS s3 bucket/object
aws s3 ls s3://bucket/folder --recursive | awk 'BEGIN {total=0}{total+=$3}END{print total/1024/1024" MB"}'