65904/how-to-setup-an-alarm-when-lambda-function-fails-in-aws
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
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.
You can try these steps to put ...READ MORE
If you get lucky (it depends what ...READ MORE
$ aws lambda put-function-concurrency --function-name my-function --reserved-concurrent-executions ...READ MORE
Hi@akhtar, You can delete the specified alarms. You can ...READ MORE
Check if the FTP ports are enabled ...READ MORE
To connect to EC2 instance using Filezilla, ...READ MORE
I had a similar problem with trying ...READ MORE
I got a discussion on aws forum ...READ MORE
import boto3 from pprint import pprint def lambda_handler(event, context): # ...READ MORE
Hi@shalk, You can create a session in your ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.