Serverless S3 Remover

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

Tracked

NPM Downloads Last Month
776
Issues
2
Stars
8
Forks
2
Watchers
8
Watch Star Fork Issue Download License NPM Build Status Coverage Status Contributors

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

Using Prompt

You can use prompt before deleting bucket.

custom:
  remover:
    prompt: true # default value is `false`
    buckets:
      - remover-bucket-a
      - remover-bucket-b

terminal.png