Send serverless deployment notifications to Rollbar.
npm install --save-dev serverless-rollbar-deploys
Add the plugin and configure the accessToken and deployUser as demonstrated below.
plugins:
- serverless-rollbar-deploys
custom:
rollbar:
accessToken: STRING_VALUE
deployUser: ${env:USER}
- The
environment
sent to Rollbar will be thestage
option. - Remember that the plugins are executed in the order they are listed, so you probably want to list
serverless-rollbar-deploys
last.
- Notify on other deployment events such as start and fail.
- Only warn rather than fail if the any of the other variables are missing.