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
demandé il y a 2 ans807 vues
1 réponse
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"

répondu il y a 2 ans
  • 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?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions