概要
- CloudWatchのアラームをSlackへ通知します。
- CloudWatch => SNS => Lambda (with KMS) => Slack webhook という流れ。

Blueprint通りに設定すればほぼ動きますが、一部ちょっと変更が必要だったのでメモっておきます。
Blueprintはこちら。cloudwatch-alarm-to-slack-python

AWS lambdaのコード
変更後
Blueprintからの差分

Build software better, together
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over...
テストのために、CroudWatchのイベントテンプレがあるのですが、そちらとの整合性も取れていません。CroudWatchのイベントを少し変更します。変更後のファイルはこちら。
Comments