Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (19.1k points)

I have an AWS account. I'm using S3 to store backups from different servers. The question is there any information in AWS console about how much disk space is using on my S3 cloud?

1 Answer

0 votes
by (44.4k points)

You can use this in your AWS CLI:

aws s3 ls s3://<bucketname> --recursive  | grep -v -E "(Bucket: |Prefix: |LastWriteTime|^$|--)" | awk 'BEGIN {total=0}{total+=$3}END{print total/1024/1024" MB"}'

Or you can just go-to metrics for your S3 bucket in the AWS management console if there is a lot of data.  

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Browse Categories