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
ESPECIALISTA
feita há 10 meses924 visualizações
2 Respostas
3
Resposta aceita

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
ESPECIALISTA
respondido há 10 meses
profile pictureAWS
ESPECIALISTA
iBehr
avaliado há 10 meses
  • 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
ESPECIALISTA
respondido há 10 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas