0 votes
1 view
in AWS by (19.2k 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.6k 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.  

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...