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
已提問 3 個月前檢視次數 383 次
2 個答案
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
專家
已回答 3 個月前
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
已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南