1.0.2 • Published 4 years ago

serverless-s3-bucket-clearer v1.0.2

Weekly downloads
155
License
ISC
Repository
github
Last release
4 years ago

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