Looking to skip over specific “subfolder” when using list_objects_v2 in AWS Lambda Function
I have a AWS Lambda function that will “move” objects in my S3 bucket to another location in the same bucket (changes the key) after a certain amount of time. I have this location, the archive, set with a life cycle configuration to save cost. This hasn’t been an issue previously, but as more objects have been added, the ‘list_objects_v2’ call is taking more time. This is the structure of my bucket: