You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
1 year ago | |
---|---|---|
.gitignore | 2 years ago | |
README.md | 2 years ago | |
index.js | 1 year ago | |
package-lock.json | 1 year ago | |
package.json | 1 year ago | |
purge_s3.js | 2 years ago |
README.md
Serverless Plugin
The goal of this plugin is clean up S3 Bucket before the Cloudformation delete it. This plugin can be used on Bucket that contains static file that can be regenerated.
Don't use this plugin on data bucket.
This plugin use a custom resource to ensure that the entire stack can be deleted only from cloudformation without calling serverless remove.
Usage
custom:
s3Emptier:
- S3Bucket
The array contains the name of the resource in CloudFormation.