Are there charges on s3 Calculate Total Size

0

Hi! Are there charges when running 'Calculate total size' for s3 folders? see screenshot below.

Enter image description here

profile pictureAWS
EXPERT
asked 9 months ago855 views
2 Answers
3
Accepted Answer

S3 Calculate Total Size on console will use the ListObjectsV2 in background.

Important point to note here is, it returns up to 1000 objects per API call, so a bucket with huge number of objects will require multiple List API calls to list the objects and Sum the bytes of them.

S3 inventory is the most cost effective way to get the size of different "folders" on a bucket with millions of objects. Also s3 inventory has an added advantage that, it can query as many times and won't incur extra cost. Where as ListObjectsV2 will incur costs every time they list the bucket.

Hope you find this useful.

Abhishek

profile pictureAWS
EXPERT
answered 9 months ago
profile pictureAWS
EXPERT
iBehr
reviewed 9 months ago
  • Hey John, Does it answer your question, just curious if I can provide more info on this.

  • yes. this helps. thank you!

  • s3 inventory also have some charges which is half of the ListObjectv2. Are there free options?

0

The "total size calculation" should possibly be running the "s3 ls" API in the background.
So, there may be a fee for multiple runs.
As per the following documentation, S3 also states that a "List" action will generate 0.005 USD per 1000 actions.
https://aws.amazon.com/s3/pricing/?nc1=h_ls
https://aws.amazon.com/blogs/storage/find-out-the-size-of-your-amazon-s3-buckets/#:~:text=To%20find%20the%20size%20of,of%20bytes%20stored%20over%20time.

profile picture
EXPERT
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions