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

前端 未结 18 1345
被撕碎了的回忆
被撕碎了的回忆 2020-12-12 10:33

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

18条回答
  •  [愿得一人]
    2020-12-12 10:42

    In addition to Christopher's answer.

    If you need to count total size of versioned bucket use:

    aws s3api list-object-versions --bucket BUCKETNAME --output json --query "[sum(Versions[].Size)]"
    

    It counts both Latest and Archived versions.

提交回复
热议问题