Giter VIP home page Giter VIP logo

sns-notification-examples's Introduction

SNS-Notification-Examples

A repository with Python and Node.js examples for SNS notifications

alt text

Tutorial

An article which has step-by-step instructions for these code examples can be found at the EMnify Knowledgebase

Cloudformation Template

A cloudformation template is provided to bootstrap the AWS components used in this repository and get started with the Slack integration. To get started, copy the template into the cloudformation service, or launch the stack directly here:

Launch Stack

The parameters that have to be set suring launch are as follows:

  • DatastreamBucketName - The name of an S3 Bucket. Will be created during launch and used as a destination for EMnify Datastreamer events.
  • SlackBotName - The name of the bot that will deliver notifications to your slack workspace
  • SlackChannel - The name of the Slack channel to receive notifications
  • SlackMatchPattern - A regular expression match pattern for triggering slack notifications. This is passed to the Lambda function as an environment variable and can easily be edited later.
  • SlackWebhookURL - The full Webhook URL for the Slack notifications. This is passed to the Lambda function as an environment variable and can easily be edited later.

Note: This stack does not include the email notification lambda or SNS topic. To add this to the stack, add an email SNS topic and copy the SES lambda in this repository to this stack.

Repository contents

├── S3toSNS
│   └── s3tosns.py                   <- Reads incoming Data Stream events, trigger SNS messages
├── SNStoSlack
│   └── SNStoSlack.js                <- A Node.js lambda which sends Slack notifications to a configurable workspace
├── SNStoSES
│   ├── SNStoSES.py                  <- Send SES emails using a HTML template, less flexible but convenient starting-place
│   └── template.html                <- An example HTML template for use with SES
└── SESwithTemplate
    ├── email_template.json          <- A more complex HTML template for use with SES
    └── sendSESMailWithTemplate.py   <- Send SES emails using the templating utility privided by AWS

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.