ExAws list only number of objects

Hello everyone, I have the following question: I am using ExAws.S3 to make queries, but when I bring, for example, a list of objects, it has a maximum of 1000 keys per query.
Now what I want is to know how many objects there are in my bucket, but without bringing the list of objects, is this possible?
Or do I have to make several queries and set a counter to achieve this?

1 Like

Unfortunately S3 itself does not provide any easy way to do this beyond iterating as you had discussed. file - How can I tell how many objects I've stored in an S3 bucket? - Stack Overflow talks about another option where you can hit the cloud metrics API however to get an estimate, which is likely a lot faster.

This is really unfortunate… thank you very much for the information, I’ll see if I can access it through the API.