Git Product home page Git Product logo

serverless-plugin-notification's Introduction

Serverless Plugin Notification

serverless npm version

This is a copy of serverless-plugin-notification to be able to have working webhooks. This repository only exists for historical purposes

Requirement

  1. Serverless 1.x
  2. Project setup for AWS provider

Plugin installation

  1. Open a terminal to your Serverless project
  2. npm install --save-dev serverless-plugin-notification
  3. Add serverless-plugin-notification in your serverless.yml file (see Serverless docs)
  4. Follow platform specific installation

Supported platforms

Slack

Feature

  1. Notify service deployment to predefined Slack channel with custom username. Supporting states
  • Deployment started
  • Deployment succeeded
  • Deployment failed (TODO)
  1. Predefined message format - General info in post, function and endpoint listing in thread reply
  2. Support Slack thread
  3. Support automatically retrieving deployer name
  4. EMOJIs !

Platform installation

In your serverless.yml fill the following configuration

custom:
  notification:
    deployer: /* Default deployer name, if not automatically retrieve from local variable, if not default to 'Unnamed deployer' */
    slack:
      token: /* Your slack token here */ - Follow https://api.slack.com/bot-users to get bot access token
      channel:  /* Your channel name here */ e.g '#serverless' NOTE: Using direct message '@person' will have 'channel_not_found' error at `Deployment succeeded` and `Deployment failed`
      username: /* (Optional) Username that will be used to post the message */

Webhook

Feature

  1. Notify service deployment through http webhook POST using configurable url and headers. Supporting states:
  • Deployment started
  • Deployment succeeded
  • Deployment failed (TODO)

Missing pieces

  1. Content-Type currently support only application/json
  2. Does not support CORs

Plattform installation

In your serverless.yml fill the following configuration

custom:
  notification:
    webhook:
      url: /* Your webhook url here */
      headers: /* Your headers here - Must be in object format */
        Content-Type: application/json

serverless-plugin-notification's People

Contributors

gabriperego avatar hieuunguyeen avatar medikoo avatar ojongerius avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.