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

serverless-child-stack-manager

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-child-stack-manager

Serverless plugin for removing a set of related stacks upon 'serverless remove'

  • 3.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

serverless-child-stack-manager

serverless license build status npm version

Removes or deploys one or more related CloudFormation stacks when running 'serverless remove' or 'serverless deploy'.

This can be useful to manage tenant resources in multi-tenant apps, when each tenant has a corresponding stack. Creating the tenant stacks is expected to be done by your application, as part of your tenant subscription process, using a common prefix for CloudFormation stack names. The serverless-child-stack-manager plugin then handles upgrade and removal of those tenant stacks as part of your main serverless deployment.

Installation

npm install serverless-child-stack-manager --save-dev

Compatibility with Serverless Framework

Version 2.0.3 is compatible with Serverless Framework v3, but it uses the legacy logging interface. Version 3.0.0 and later uses the new logging interface.

serverless-child-stack-managerServerless Framework
≤ v1.3.0v1.x
v2.xv2.x, v3.x
≥ v3.0.0v3.x

Usage

Add the following to your serverless.yml:

plugins:
  - serverless-child-stack-manager

  custom:
    serverless-child-stack-manager:
      # determines which stacks are handled by the plugin
      childStacksNamePrefix: my-stack-prefix
      # what to do with the stacks on 'serverless remove'
      removalPolicy: remove
      # name of a Lambda function to be invoked on 'serverless deploy' for all the associated stacks
      upgradeFunction: ${self:service.name}-${self:provider.stage}-stackUpdate

A complete description of configuration options here.

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