Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@purple/serverless-s3-remover

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purple/serverless-s3-remover

Plugin for serverless to make buckets empty before remove.

  • 0.7.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
decreased by-92.91%
Maintainers
4
Weekly downloads
 
Created
Source

@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.

FAQs

Package last updated on 17 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc