Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-stage-manager

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-stage-manager

Super simple serverless plugin for validating stage names before deployment

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17K
increased by34.02%
Maintainers
1
Weekly downloads
 
Created
Source

serverless-stage-manager

Super simple serverless plugin for validating stage names before deployment.

Serverless npm npm

Installation

Install using Serverless plugin manager
serverless plugin install --name serverless-stage-manager
Install using npm

Install the module using npm:

npm install serverless-stage-manager --save-dev

Add serverless-stage-manager to the plugin list of your serverless.yml file:

plugins:
  - serverless-stage-manager

Configuration

Add a stages value in the custom section of your serverless.yml file and specify an array of valid stage names.

custom:
  stages:
    - dev
    - staging
    - prod

Usage

When running serverless deploy or serverless deploy function, it will check to make sure it is a valid stage name before continuing. For example:

# Given the above configuration of dev, staging & prod

# These will work
serverless deploy -s prod
serverless deploy -s staging
serverless deploy function -f funcName -s dev
serverless deploy # assuming default stage is in custom.stages config

# These will fail
serverless deploy -s foo
serverless deploy function -f funcName -s bar

Keywords

FAQs

Package last updated on 02 Mar 2018

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