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, 2020 in AWS by akhtar
• 38,260 points
4,192 views

1 answer to this question.

0 votes

Hi@akhtar,

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, 2020 by MD
• 95,460 points

Related Questions In AWS

0 votes
2 answers

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

If you get lucky (it depends what ...READ MORE

answered Nov 3, 2020 in AWS by anonymous
15,562 views
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
23,522 views
0 votes
1 answer

How to delete an alarm in AWS?

Hi@akhtar, You can delete the specified alarms. You can ...READ MORE

answered Nov 18, 2020 in AWS by MD
• 95,460 points
1,442 views
0 votes
1 answer
0 votes
1 answer
+2 votes
3 answers
0 votes
3 answers

How to check instance state and status via Lambda function in AWS?

import boto3 from pprint import pprint def lambda_handler(event, context):          # ...READ MORE

answered Sep 8, 2020 in AWS by Shrikant
• 180 points
10,533 views
0 votes
1 answer

how to get the list of aws services i am used in aws my account by using the lambda function

Hi@shalk, You can create a session in your ...READ MORE

answered Sep 24, 2020 in AWS by MD
• 95,460 points
2,473 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP