TECHIES WORLD

For Techs.... Techniques.... Technologies....

Linux

How to count the number of objects in S3 bucket

Amazon S3 is a service offered by Amazon Web Services (AWS) that provides object storage through a web service interface.

We can count the number of objects in S3 bucket using awscli commands.

#aws s3 ls s3://bucket-name/ --recursive | wc -l 

Here we need to replace bucket-name with the name of the bucket that we need to take the object count.

That's all…

Leave a Reply