/mattermost-plugin-aws-SNS

Plugin that receives SNS notification from Alerts created by AWS CloudWatch and sent via AWS SNS

Primary LanguageGoApache License 2.0Apache-2.0

AWS SNS Plugin

Build Status Code Coverage Release HW

Maintainer: @mickmister Co-Maintainer: @jfrerich

This plugin is used to send alert notifications from Amazon AWS CloudWatch to Mattermost channels via AWS SNS. RDS Event processing is also supported.

Originally developed by Carlos Tadeu Panato Junior.

image

Configuration

Step 1: Configure plugin in Mattermost

  1. Go to System Console > Plugins > AWS SNS.

  2. Set the channel to send notifications to, specified in the format teamname,channelname. If the specified channel does not exist, the plugin will create the channel for you.

  3. Set authorized users who can accept AWS SNS subscriptions. Must be a comma-separated list of user IDs.

  4. Set the username that this integration is attached to.

  5. Generate a token used for an AWS SNS subscription. Copy this value as you will use it in a later step.

  6. Go to System Console > Plugins > Management and select Enable to enable the AWS SNS plugin.

Step 2: Configure plugin in Amazon AWS

  1. Create an AWS CloudWatch alarm for your instance.
  2. Create an AWS SNS Topic with an HTTPS subscription to https://your-mattermost-url/plugins/com.mattermost.aws-sns?token=your-mattermost-token, where your-mattermost-url refers to your Mattermost URL, and your-mattermost-token was generated on a previous step. Follow this documentation for additional configuration options.
  3. Switch to the Mattermost channel you configured to receive notifications.
  4. Select Confirm to accept the subscription posted to the channel.
  5. Configure your AWS CloudWatch Alarms to use the topic you created previously.

You're all set! Alerts should now get posted from AWS CloudWatch to Mattermost.

Development

This plugin contains a server portion. Read our documentation about the Developer Workflow and Developer Setup for more information about developing and extending plugins.