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
feita há 3 meses383 visualizações
2 Respostas
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
ESPECIALISTA
respondido há 3 meses
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
respondido há 3 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas