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
posta 2 anni fa807 visualizzazioni
1 Risposta
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"

con risposta 2 anni fa
  • 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?

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande