Serverless S3 Remover

homepage icon https://github.com/sinofseven/serverless-s3-remover

Tracked

NPM Downloads Last Month
257
Issues
1
Stars
6
Forks
1
Watchers
6

Repo README Contents:

NPM NPM

serverless-s3-remover

plugin for serverless to make buckets empty before remove

Usage

Run next command.

$ npm install serverless-s3-remover

Add to your serverless.yml

plugins:
  - serverless-s3-remover

custom:
  remover:
     buckets:
       - my-bucket-1
       - my-bucket-2

You can specify any number of buckets that you want.

Now you can make all buckets empty by running:

$ sls s3remove

When removing

When removing serverless stack, this plugin automatically make buckets empty before removing stack.

$ sls remove