Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

this is plugin of serverless, before "sls remove", this empties the s3 bucket.

License

NotificationsYou must be signed in to change notification settings

sinofseven/serverless-s3-remover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPMNPM

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-removercustom:remover:buckets:       -my-bucket-1       -my-bucket-2

You can specify any number ofbuckets 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:truefalse:falseremover: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.

About

this is plugin of serverless, before "sls remove", this empties the s3 bucket.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp