Counting files in S3 buckets and folders is harder than it should be. But here's a way to get it done using s3cmd:
- Install S3cmd
- On Mac,
brew install s3cmd
- On Windows, go here
-
From the command line, run
s3cmd --configure
-
Add your credentials when prompted.
-
Once it's all set up and working, run:
s3cmd ls --recursive s3://BUCKET_NAME/FOLDER_NAME | wc -l