Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CloudFormation alarm for multiple Lambdas

I have an app with a bunch of Lambdas. Instead of adding one CloudWatch alarm for each is there a way to combine all of them into one alarm that goes off if any of the Lambdas error out?

So far I tried:

  • Adding each function as a dimension (CloudFormation complains about duplicate FunctionNames)
  • Adding each function as a dimension with a different key than FunctionName, CloudFormation doesn't complain, but it doesn't really work either.
like image 339
Fábio Dias Avatar asked Oct 18 '25 11:10

Fábio Dias


1 Answers

One possible solution is to use Metrics and combine all dimensions using Expression: MAX([d1,d2,...]). Just make sure to pass 'ReturnData: false' on the other metrics.

like image 66
Fábio Dias Avatar answered Oct 21 '25 03:10

Fábio Dias



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!