Serverless Api Stage

homepage icon https://github.com/leftclickben/serverless-api-stage

Tracked

NPM Downloads Last Month
112
Issues
2
Stars
7
Forks
1
Watchers
7

Repo README Contents:

Serverless API Stage plugin

Build Status License: MIT

Plugin for the serverless framework that allows the use of stages with defined stage variables and logging configuration, when using the AWS provider.

This is a rewritten plugin with the same functionality provided by two existing plugins:

Namely:

Installation

Install the plugin via npm.

Usage Example

#...
plugins:
  - serverless-api-stage
#...
custom:
  stageSettings:
    Variables:
      foo: bar
      baz: xyzzy
    MethodSettings:
      LoggingLevel: INFO
      # see below...
#...

The full list of MethodSettings available are defined in the AWS CloudFormation documentation.

Contributors

Please contribute by submitting a pull request, or raising an issue.

Code changes or additions should include corresponding unit test changes or additions. Tests can be run locally using npm test. This requires global installation of jshint and mocha (npm install -g jshint mocha).