Send CloudWatch Alarms to Slack with AWS Lambda
Read the full blog post on cloudonaut.io.
$UniqueSuffix
with e.g. your username): aws --region us-east-1 s3 mb s3://cw-to-slack-$UniqueSuffix
npm install
$UniqueSuffix
with e.g. your username): aws --region us-east-1 cloudformation package --s3-bucket cw-to-slack-$UniqueSuffix --template-file template.yml --output-template-file template.sam.yml
$WebhookURL
with your URL from Slack): aws --region us-east-1 cloudformation deploy --parameter-overrides "WebhookURL=$WebhookURL" --template-file template.sam.yml --stack-name cw-to-slack --capabilities CAPABILITY_IAM