serverless-s3-bucket-clearer
v1.0.2
Published
Serverless plugin that deletes s3 bucket objects and delete markers
Downloads
7
Readme
serverless-s3-bucket-clearer
Serverless plugin to empty buckets and versioned buckets.
Usage
$ npm install serverless-s3-bucket-clearer
Add the following to your serverless yml template.
plugins:
- serverless-s3-bucket-clearer
custom:
s3clear:
enabled: false # default enabled
buckets: #list of buckets to be emptied
- your-bucket-1
- your-bucket-2
Removing a stack with the plugin enabled.
You can empty out the buckets with
$ sls s3clear
On removing a serverless stack the plugin will empty out buckets listed allowing for the buckets to be removed.
$ sls remove