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
feita há 2 anos807 visualizações
1 Resposta
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"

respondido há 2 anos
  • 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?

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas