Lambda and Slack Integration
Feb 23, 2017 · 1 min read
Pushing Notifications to slack channel Via Lambda:
1. Create a slack channel and create a trigger in slack.
2. Go to cloud watch and create alarm taking the right matrices and set one SNS notification for that alarm.
3. Go to the AWS Lambda and search for slack python blueprint.
4. Choose correct SNS notification as lambda trigger.
5. Enable trigger.
6. Create a KMS key in the same region that have the lambda function.
7. Checkbox Enable encryption helpers and pass the encryption key.
8. Give the key value for
a. Slack channel
b. Kmsencryption URL(remove https from that and click on encrypt)
9. Give a role name.
10. Choose the right key at the bottom.
11. That’s it! now make the CW alarm state to alarm and check the slack channel.
