@purple/serverless-s3-remover

0.7.0 • Public • Published

@purple/serverless-s3-remover

Plugin for serverless to make buckets empty before remove.

Original project

Original project is not maintained anymore, so we published this version under @purple organisation.

Main difference between serverless-s3-remover and @purple/serverless-s3-remover is ability to empty buckets with enabled versioning.

serverless-s3-remover is not able to empty buckets with enabled versioning.

Usage

Run next command.

$ npm install @purple/serverless-s3-remover

Add to your serverless.yml

plugins:
  - "@purple/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

Populating the configuration object before using it

custom:
  boolean:
    true: true
    false: false
  remover:
    prompt: ${self:custom.boolean.${opt:s3-remover-prompt, 'true'}}

I can use the command line argument --s3-remover-prompt false to disable the prompt feature.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.7.0310latest

Version History

VersionDownloads (Last 7 Days)Published
0.7.0310

Package Sidebar

Install

npm i @purple/serverless-s3-remover

Weekly Downloads

310

Version

0.7.0

License

MIT

Unpacked Size

9.79 kB

Total Files

4

Last publish

Collaborators

  • petrhendrych
  • andrij.k
  • porwolikt
  • pnetusil37
  • sfajfr-purple
  • mturza
  • zakve
  • jzemek
  • atesarova
  • janziemba
  • pvolf
  • jmedek
  • pnemecekpurple
  • okaziya
  • albertvasatko
  • vskupien
  • jakubmed
  • xurban42
  • tomzaoral
  • vaclavgabriel
  • jancervinka
  • pyrek
  • fekecrad
  • pjediny
  • xurban46
  • mkubicekp
  • chorobin
  • bsedlak
  • samuelg0rd0n