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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ