Weekly check for Lambda functions

Federico Paparoni
May 20, 2018 · 2 min read
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

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade