New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

serverless-backup-vault-cleaner

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-backup-vault-cleaner

Serverless Framework plugin that empties AWS Backup vaults before removing a stack

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

serverless-backup-vault-cleaner

serverless license build status npm 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 the new 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 your serverless.yml:

plugins:
  - serverless-backup-vault-cleaner

custom:
  serverless-backup-vault-cleaner:
    # Names of backup vaults to remove before a stack is removed
    backupVaults:
      - vaultName1
      - vaultName2

    # (optional) Backup vaults to remove before a stack is deployed
    backupVaultsToCleanOnDeploy:
      - oldBucketName

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

When deploying a Serverless Framework stack, this plugin automatically empties the backup vaults listed under backupVaultsToCleanOnDeploy 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

Keywords

FAQs

Package last updated on 08 Dec 2022

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