Skip to content

awkward/serverless-plugin-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Plugin Webpack

Notify slack webhook after running sls deploy function

Install

Using npm:

npm install serverless-plugin-slack --save-dev

Add the plugin to your serverless.yml file:

plugins:
  - serverless-plugin-slack

Configuration

custom:
  slack:
    webhook_url: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
    user: some_user (optional, defaults to user set in process.env.USER)
    emoji: custom slack emoji (optional, default :cloud:)
    function_deploy_message: optional message, defaults to "`{{user}}` deployed function (`{{name}}`) to environment `{{stage}}` in service `{{service}}`"
    service_deploy_message: optional message, defaults to "`{{user}}` deployed service `{{service}}` to environment `{{stage}}`"

In the messages the following variables are available:

  • {{user}}
  • {{service}}
  • {{name}} - function name, only when deploying single function
  • {{stage}}

About

Notify Slack after deployments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •