Weekly check for Lambda functions

Photo by Pixabay from Pexels

When you use AWS Lambda functions, among different regions, for different projects, you will probably run out of control. Keep track of the resources on the AWS platform can be difficult and Lambda functions are one of these resources.

Some time ago I read this interesting article from Nitzan Shapira, where you can find a useful script to collect informations about the execution of your Lambda functions, using the log streams all over the regions. I modify this script to create a Lambda function (another?!?!) that can send these informations by email on a scheduled check

Weekly check for Lambda functions

I setup a CloudWatch Event rule to trigger every Friday at twelve o’clock

cron(0 12 ? * FRI *)

then I simply modified the original script to create an HTML table with data collected from log streams, using HTML.py. Then using Amazon SES these informations can be sent.

If you want to use or if you want to get your hands dirty with this script, you can find it in the following Github repository