Setup lambda notification alert for deprecated runtime

1

Hi,

Good day! Is there a way to get an email notification for all the deprecated lambda runtime within my account? For example, if are are still lambda runtime using deprecated version of NodeJS 10 or Python 2.7 in my account, I want to receive an email notification for all lambda with deprecated versions of python or nodejs.

Regards, khentz

khentz
asked 2 years ago763 views
1 Answer
1

I don't know of any service that will do this for you, but you could create a lambda that checks all your lambda versions against versions that are coming to an end and notify you.

You could setup a dyanmodb table and update it from the dates in the Runtime end of support dates table in this page: https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html.

The call to query the lambda would be something like:

aws lambda list-functions --function-version ALL --output text --query "Functions[?Runtime=='python2.7'].FunctionArn"

answered 2 years ago
  • Thank you @Rollerlade7. How about a way of listing all the deprecated runtime?

  • I had a look into that, but it doesn't seem like AWS has an endpoint for that at the moment. The only thing I can think of is to create a page scraper to check the runtime support policy page table. Not ideal as the page formatting might change etc.. Else add a monthly calendar event to check the page your self?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions