JSPM

serverless-stack-termination-protection

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15611
  • Score
    100M100P100Q166517F
  • License MIT

Serverless plugin to update the CloudFormation stack termination protection

Package Exports

  • serverless-stack-termination-protection

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-stack-termination-protection) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Serverless Stack Termination Protection Plugin

Following deployment, the Serverless Framework does not have the option to enable termination protection for the CloudFormation stack. This plugins will enable the termination protection. It can also disable it by using a command line option. This plugin is designed for the Serverless Framework 1.x.

Requirements

  • Serverless Framework 1.x.
  • Node 8.x or greater.

Installation

Install with npm:

npm install --save-dev serverless-stack-termination-protection

And then add the plugin to your serverless.yml file:

plugins:
  - serverless-stack-termination-protection

Automatically Enable Termination Protection After Deployment

This plugin enables termination protection automatically after the deployment. Simply run the deploy:

sls deploy

Automatically Disable Termination Protection After Deployment

This plugin can disable termination protection automatically after the deployment. Simply run the deploy with the --disable-termination-protection option:

sls deploy --disable-termination-protection

Notes

This verion is not designed to work with a custom stack name defined in the serverless.yml file:

provider:
  stackName: custom-stack-name

License

See the included LICENSE for rights and limitations under the terms of the MIT license.