How to get the size of an Amazon S3 bucket

0 votes

Hi Guys,

I have uploaded some files in my S3 bucket. I want to copy the bucket. But before that, I want to see the size of the bucket. How can I do that?

Oct 4, 2020 in AWS by akhtar
• 38,180 points
211 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use AWS CLI to perform your task. In AWS CLI you can pass your query to find the size of the S3 bucket as shown below.

$ aws s3 ls --summarize --human-readable --recursive s3://bucket-name/
answered Oct 4, 2020 by MD
• 95,240 points

Related Questions In AWS

0 votes
1 answer

How to list the contents of Amazon S3 by modified date?

One easy solution would be probably to ...READ MORE

answered Aug 21, 2018 in AWS by datageek
• 2,530 points
29,851 views
0 votes
1 answer
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,120 points
2,351 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,120 points
2,954 views
0 votes
1 answer

Import my AWS credentials using python script

Using AWS Cli  Configure your IAM user then ...READ MORE

answered Nov 16, 2018 in AWS by Jino
• 5,810 points
1,616 views
0 votes
2 answers
0 votes
1 answer

How to measure the total size of an S3 bucket using python?

Hi@akhtar, You can do this tasks using Boto. ...READ MORE

answered Apr 15, 2020 in AWS by MD
• 95,240 points
2,087 views
0 votes
1 answer

How to get the number of pages in a pdf file present in s3?

Hi@Manav, To know about information about pdf file, ...READ MORE

answered May 3, 2020 in AWS by MD
• 95,240 points
838 views