AWS S3: how do I see how much disk space is using

I have AWS account. I'm using S3 to store backups from different servers. The question is there any information in the AWS console about how much disk space is in use in my S3 cloud?


Solution 1:

The command line tool gives a nice summary by running:

aws s3 ls s3://mybucket --recursive --human-readable --summarize

Solution 2:

Yippe - an update to AWS CLI allows you to recursively ls through buckets...

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

Solution 3:

To find out size of S3 bucket using AWS Console:

  1. Click the S3 bucket name
  2. Select "Metrics" tab
  3. You should see "Bucket metrics" which by default includes "Total bucket size"