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.
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.
 
Ulrich Van Den Hekke b4360fa337 feat: update to serverless v3 1 year ago
.gitignore feat: first serverless plugin to remove content of s3 bucket 2 years ago
README.md fix: add dependencies to the bucket via ref 2 years ago
index.js feat: update to serverless v3 1 year ago
package-lock.json feat: update to serverless v3 1 year ago
package.json feat: update to serverless v3 1 year ago
purge_s3.js feat: first serverless plugin to remove content of s3 bucket 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.