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
gefragt vor 3 Monaten383 Aufrufe
2 Antworten
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
EXPERTE
beantwortet vor 3 Monaten
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
beantwortet vor 3 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen