Answers: <p>You might have incomplete multipart upload in your S3 bucket which does not show up in the aws console.</p>
  <blockquote>
  <p>If the complete multipart upload request isn’t sent successfully, Amazon S3 will not assemble the parts and will not create any object. The parts remain in your Amazon S3 account until the multipart upload completes or is aborted, and you pay for the parts that are stored in Amazon S3. These parts are charged according to the storage class specified when the parts were uploaded.</p>
  </blockquote>
  <p>You can follow the guide <a href="https://aws.amazon.com/blogs/aws-cloud-financial-management/discovering-and-deleting-incomplete-multipart-uploads-to-lower-amazon-s3-costs/" rel="nofollow noreferrer">here</a> to check if that's what taking up the storage in your S3 bucket.</p>
  <p>If you do not have a lifecycle policy to abort incomplete multipart upload, you should probably do so.</p>
  
Answers: CC BY-SA 4.0
Answers: 2022-10-28T16:43:57.243Z
Answers: 2022-10-28T16:43:57.243Z
Answers: hazmei
Body: <p>I ran into an problem recently, my AWS S3 bucket shows total size of 30 TB. However when i try to get the total size of individual folders, it is not summing up more than 2 TB.</p>
  <p>I used the below command</p>
  <pre><code>aws s3 ls --summarize --human-readable --recursive s3://BUCKETNAME
  </code></pre>
  <p>also, in the AWS console, I used the calculate total size option, am I missing something. I feel that there might be sizes and number of objects based on the versions, if this is the case, I do not get a query that can show the total size by individual file with versions. Is there some query or command that I can use to get the right size and objects that are taking huge size.</p>
  
Comments: CC BY-SA 4.0
Comments: 2022-10-27T13:52:35.093Z
Comments: I have tried the UI and searched in the AWS documentation and could not find right help, also I tried running the aws cli commands so please do not mark this question as not having any effort from me
Comments: Saran
Tags: <amazon-web-services><amazon-s3><aws-cli>
Title: calculating the size of objects in AWS S3 buckets
UserDisplayName: Saran
ThreadText: # calculating the size of objects in AWS S3 buckets
  
  (Asked by: username_0 on 2022-10-27)
  
  I ran into an problem recently, my AWS S3 bucket shows total size of 30 TB. However when i try to get the total size of individual folders, it is not summing up more than 2 TB.
  
  I used the below command
  
  ```
  aws s3 ls --summarize --human-readable --recursive s3://BUCKETNAME
  
  ```
  
  also, in the AWS console, I used the calculate total size option, am I missing something. I feel that there might be sizes and number of objects based on the versions, if this is the case, I do not get a query that can show the total size by individual file with versions. Is there some query or command that I can use to get the right size and objects that are taking huge size.
  
  **Tags:** amazon-web-services, amazon-s3, aws-cli
  
  > **Comments:**
  > **username_0**: I have tried the UI and searched in the AWS documentation and could not find right help, also I tried running the aws cli commands so please do not mark this question as not having any effort from me  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-10-28. Score: 1 | Accepted answer
  
  You might have incomplete multipart upload in your S3 bucket which does not show up in the aws console.
  
  > If the complete multipart upload request isn’t sent successfully, Amazon S3 will not assemble the parts and will not create any object. The parts remain in your Amazon S3 account until the multipart upload completes or is aborted, and you pay for the parts that are stored in Amazon S3. These parts are charged according to the storage class specified when the parts were uploaded.
  
  You can follow the guide [here](https://aws.amazon.com/blogs/aws-cloud-financial-management/discovering-and-deleting-incomplete-multipart-uploads-to-lower-amazon-s3-costs/) to check if that's what taking up the storage in your S3 bucket.
  
  If you do not have a lifecycle policy to abort incomplete multipart upload, you should probably do so.
  
  
  ---
  
  