serverless-stage-manager
Super simple serverless plugin for validating stage names before deployment
Last updated 2 years ago by jdaly .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install serverless-stage-manager 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.5                                ...           latest (2 years ago)

6 Versions

  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |