Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 662 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 662 Bytes

alarm-sns-basic

CloudwatchAlarm -> SNS -> Lambda

Overview

Receive alarm messages via SNS Topic and notify to Slack.

When the function receive ALARM, it will send the below message

*:exclamation:ALARM: <AlarmDescription>*
<AlarmName>
<NewStateReason> @<StateChangeTime>

In the case of OK, it will send the below message only when the old state is ALARM

*:white_check_mark:OK: <AlarmDescription>*
<AlarmName>
<NewStateReason> @<StateChangeTime>

Build & Deploy

$ make build
$ make deploy function=<function-name> profile=<profile> region=<region>

requirements

environment variables

  • SLACK_URL