Skip to content

'clean' operations don't complete properly if the number of keys in the S3 bucket is large #45

Description

@kpfleming

I'm trying to clean out 50,000 (or more) stale assets from a bucket, but the process won't complete because it uses the ListObjectsV2Command which limits the number of returned keys, and the code does not attempt to use pagination to get the full list.

Something like this which uses paginateListObjectsV2 should be used in order to obtain the full list of keys in the bucket.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions