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

Serverless Framework plugin that empties an AWS Backup vault before removing a stack

License

NotificationsYou must be signed in to change notification settings

coyoteecd/serverless-backup-vault-cleaner

Repository files navigation

serverlesslicensebuild statusnpm version

Serverless Framework plugin that empties an AWS backup vault (i.e. deletes all its restore points) before removing a deployed stack.This makes it possible to remove stacks that contain a backup vault as a resource.

Installation

npm install serverless-backup-vault-cleaner --save-dev

Compatibility with Serverless Framework

Version 1.0.1 is compatible with Serverless Framework v3, but it uses the legacy logging interface. Version 2.0.0 and later uses thenew logging interface.

serverless-backup-vault-cleanerServerless Framework
v1.0.0v1.x, v2.x
v1.0.1v1.x, v2.x, v3.x
≥ v2.0.0v3.x

Usage

Add the following to yourserverless.yml:

plugins:  -serverless-backup-vault-cleanercustom:serverless-backup-vault-cleaner:# Names of backup vaults to remove before a stack is removedbackupVaults:      -vaultName1      -vaultName2# (optional) Backup vaults to remove before a stack is deployedbackupVaultsToCleanOnDeploy:      -oldBucketName

When removing a Serverless Framework stack, this plugin automatically empties the backup vaults listed underbackupVaults option.

When deploying a Serverless Framework stack, this plugin automatically empties the backup vaults listed underbackupVaultsToCleanOnDeploy option.Use this when renaming or removing a backup vault (put here the old vault name) to avoid deployment errors when CloudFormation tries to remove the old backup vault.

Permissions

The plugin requires the following permissions for the role that Serverless runs with:

  • backup:DescribeBackupVault
  • backup:ListRecoveryPointsByBackupVault
  • backup:DeleteRecoveryPoint

About

Serverless Framework plugin that empties an AWS Backup vault before removing a stack

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp