@bitsofinfo FYI I reimplemented and published this plugin at https://www.npmjs.com/package/serverless-s3-cleaner, since we use it in one of our projects and we needed some extra improvements + functionality.
Feel free to switch to the package I published, I intend to maintain it for at least the period of time I use it in my own work projects.
Switching is easy, you only need to change the config key under custom and possibly you may need to ensure the buckets have ListBucketVersions/DeleteObjectVersion permissions. I also removed the verbose option, since it didn't do much and was giving a deprecation warning in latest Serverless versions.
@bitsofinfo FYI I reimplemented and published this plugin at https://www.npmjs.com/package/serverless-s3-cleaner, since we use it in one of our projects and we needed some extra improvements + functionality.
During the implementation, I've included support of bucket versioning (see https://www.npmjs.com/package/@purple/serverless-s3-remover) and an extra feature that I've previously implemented in a fork of serverless-s3-remover.
Feel free to switch to the package I published, I intend to maintain it for at least the period of time I use it in my own work projects.
Switching is easy, you only need to change the config key under custom and possibly you may need to ensure the buckets have ListBucketVersions/DeleteObjectVersion permissions. I also removed the verbose option, since it didn't do much and was giving a deprecation warning in latest Serverless versions.