22

I don't seem to be able to find a total amount of data I have stored in Amazon S3.

Total per bucket is okay, entire total also, and both would be best.

6 Answers 6

24

Go to aws.amazon.com and click Account > Usage Reports

After signing in, select Amazon Simple Storage Service from the Service drop down and then select TimedStorage-ByteHrs from the Usage Types drop down. Select the period of time you want to be reported and use the buttons at the bottom to download the report.

The usage report gives a storage total for each bucket and each day, which is necessary to bill properly for additions and deletions. If all you need is the current total, just select a custom date range that includes only yesterday. If you download in CSV format it should be an easy matter to open the file in a spreadsheet application and sum the storage totals for all the buckets.

4
  • 1
    Oh right, my brain didn't even register the "Account" link! I thought everything took place in the management console... Anyway, thanks for the answer
    – jfoucher
    Jul 8, 2010 at 20:26
  • 4
    And: these are Byte-Hours, not Bytes. You will have to divide by 24 to see the size
    – Ivin
    Nov 14, 2012 at 23:21
  • 7
    The report has moved. Direct link: portal.aws.amazon.com/gp/aws/developer/account/… Or click Reports > AWS Usage Report.
    – Henrik N
    Aug 2, 2014 at 16:46
  • @jfoucher It's not your fault you wouldn't think to look there. Most of the AWS interface isn't exactly intuitive or consistent.
    – orrd
    Jan 25, 2017 at 3:50
5

Here's my HowTo explaining how to parse S3 Usage Report using bash one liner to get readable results.

cat report.csv | awk -F, '{printf "%.2f GB %s %s \n", $7/(1024**3 )/24, $4, $2}' | sort -n
2
  • Worked great for me.
    – lobi
    Mar 9, 2016 at 22:55
  • 1
    Link is broken. Mar 5, 2020 at 18:37
4

You can now view the size of each S3 bucket directly in the console. Click on the Amazon S3 -> -> Management -> Metrics.

1
  • I just see "No metrics are currently available for Storage." Jul 14, 2017 at 14:39
1

Why can't you use your bill to get that number ? Is that not what shows up in the detail section of the Amazon Simple Storage Service TimedSTorage-ByteHrs section? It breaks it down by total size of stored object (<1TB, 1-50TB, 50+ ...et.c.) but you can do simple math then.

1

An awesome solution is to use S3Stat solution which provides very nice reports and not free, but affordable.

A sample: enter image description here

2
  • 3
    This reads like an advertisement. Can you address how it directly answers the question?
    – jonsca
    May 14, 2015 at 6:19
  • I need to pay a third party $120 per year to see something that Amazon should include by default. Backblaze B2 has the nice graphs and when I'm using s3 instead I have the impression it's designed for "don't worry about the usage, you can see it when you will get the expensive bill at the end of the month" yesterday
0

This is a follow on to Darren Kraker's answer (Amazon S3 -> [your bucket] -> Management -> Metrics) and Martin Eden's comment to say that I too was getting the "No metrics are currently available for Storage" when I first checked the Metrics panel on one of my buckets. Subsequently though, I checked several of my other buckets and got the data I was looking for. The difference? The buckets which had the info available only contained Standard class storage objects, whereas the first bucket I checked, the one with "no metrics... currently available" contained both Standard glass and Glacier objects. I am guessing that the Metrics panel cannot yet accurately tabulate the two separately, hence the "unavailable" message.

Not the answer you're looking for? Browse other questions tagged or ask your own question.