frizz925 / shippostbot

Your friendly bot for pairing your favorite anime characters, ShippostBot

Home Page:https://www.facebook.com/ShippostBot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup AWS CloudWatch alarm resource

frizz925 opened this issue · comments

commented

When the bot is failing to post over the period of time, it's actually hard to tell that it is failing until it's noticed that the bot actually stops posting. One way to overcome this problem is by setting up a AWS CloudWatch alarm based on Lambda's error metrics and trigger it under a certain condition.

The condition would be for average number of errors that is more than 1 over the period of 1 hour (assuming the bot posts every 30 mins), it should trigger the alarm.

commented

Done, although manually through the AWS console (no Terraform)