CloudWatch Alarm not Invoking Action

0

Hi All, I have an alarm hooked up to a custom metric that is triggered by the word "error" appearing in one of my log-streams. This 5 minute Greater than 0 alarm has a Lambda action on it. This Lambda function isn't getting called when the alarm state changes from OK to In Alarm. The Lambda used to fire, but stopped on 1/9. The Lambda function exists and I have tried to recreate the alarm several times. Can anyone point me in a promising Alarm State

grahem
asked 3 months ago346 views
2 Answers
0

Hello.

Isn't there any execution history left in the Lambda log?
If it is not logged, check whether CloudWatch Alarm has permission to run Lambda in Lambda's resource-based policy.
https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html

profile picture
EXPERT
answered 3 months ago
0

Lambda history stopped back on 1/09/24. Lambda shows the invoke permission granted to the alarm ARN.

I decided to just change the trigger on the Lambda directly to come from the CW log group and typed a filter in there. But it would be really nice to know how to create a CW alarm and have it trigger a Lambda. The console wizard seems like it's very easy, but in my attempts, it doesn't work.

grahem
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions