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.
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.
Clone this repository then follow the steps below:
- Open your MS Teams client and choose a channel to receive your notifications
- Go to the options screen for that channel and choose "Connectors"
- Select the "Incoming Webhook" connector, fill in the options and hit the "Create" button
- Copy the URL to your clipboard and save the connector
- Copy the
env.example
file to.env
- 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
With the variables filled in, you can test the function:
npm install
npm test
MIT License