A question about the S3 Lifecyle module

Hello All,

I want to be able to use the S3 lifecycle module to have exclude rules? I want to be able to delete most files in a bucket, but exclude a couple of folders.

I want to be able to setup lifecycle rules for every file in a bucket, apart from a handful of items.

Thanks

Unless things have changed recently, AWS S3 lifecycle policies do not support arbitrary exclude rules. So the lifecycle module will not be able to provide this functionality.

Lifecycle policies can match dates and prefixes. To make use of lifecycles policies, you should use prefixes in a way that will match policies you want.