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
질문됨 2년 전807회 조회
1개 답변
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"

답변함 2년 전
  • 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?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠