Skip to content

An AWS Lambda function for better MS Teams notifications generated from CloudWatch events.

License

Notifications You must be signed in to change notification settings

KangarooBox/lambda-cloudwatch-event-msteams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambda-cloudwatch-event-msteams

An AWS Lambda function for better MS Teams notifications generated from CloudWatch events. This work is a direct descendant of lambda-cloudwatch-slack and wouldn't be possible without it.

BuildStatus NPM version

Overview

This function was originally derived from the lambda-cloudwatch-slack project which was originally derived from the AWS blueprint named cloudwatch-alarm-to-msteams. The function in this repo allows CloudWatch Events to generate MS Teams notifications.

Show important activities Deleting an ACCESS KEY

Show dangerous activities Creating an ACCESS KEY

Configuration

Clone this repository then follow the steps below:

  1. Open your MS Teams client and choose a channel to receive your notifications
  2. Go to the options screen for that channel and choose "Connectors"
  3. Select the "Incoming Webhook" connector, fill in the options and hit the "Create" button
  4. Copy the URL to your clipboard and save the connector
  5. Copy the env.example file to .env
  6. Open the .env file in your editor and update the values inside
    • The WEBHOOK_URL is the URL you copied to your clipboard in an earlier step
    • The COLOR values can be changed as you see fit

Tests

With the variables filled in, you can test the function:

npm install
npm test

License

MIT License

About

An AWS Lambda function for better MS Teams notifications generated from CloudWatch events.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published