How to setup an alarm when Lambda function fails in AWS?

0 votes

Hi Guys,

I have my Lambda functions in AWS. But I don't want to check every time, my functions are running or not. 

How can I create an Alarm for that?

Thank You

Apr 2 in AWS by akhtar
• 17,950 points

1 answer to this question.

0 votes


To create an Alarm for Lambda function, follow the below given steps.

  • Go to your CloudWatch Console:

  • Click "Alarms" at the left, and then Create Alarm.

  • Click "Lambda Metrics".

  • Look for your Lambda name in the listing, and click on the checkbox for the row where the metric name is "Errors". Click "Next".

  • Enter a name and description for this alarm.

  • Setup the alarm to be triggered whenever "Errors" is above 0, for 1 consecutive period(s).

  • Select "Sum" as the Statistic and 5 minutes (or the amount of minutes that's reasonable for your use case) in the "Period" dropdown.

  • In the "Notification" box, click the Select a notification list dropdown and select your new SNS endpoint.

  • Click "Create Alarm".

Hope this will help.

Thank You

answered Apr 2 by MD
• 41,660 points

Related Questions In AWS

0 votes
1 answer

How do I add python libraries to an AWS lambda function for Alexa?

As it is described in the Amazon ...READ MORE

answered Oct 23, 2018 in AWS by Archana
• 4,150 points
0 votes
2 answers

How to kill a lambda function in AWS?

$ aws lambda put-function-concurrency --function-name my-function --reserved-concurrent-executions ...READ MORE

answered Mar 28, 2019 in AWS by Shashank
• 1,370 points
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+2 votes
3 answers
0 votes
1 answer