How could I list all objects under a prefix in S3


There are more than 3k objects under the prefix. I use the following code to list all objects to get their names, but the API only retrieve 1000 objects.
s3_client = boto3.client(‘s3’)


Use paginators to loop through multiple pages. See: Creating Paginators

Leave a Reply