AWS cli - List all the deprecated lambda runtime

1

Hi, Is there a way to list all the deprecated lambda runtime using aws cli? I'm planning to get all the list only all the deprecated lambda runtime and next is possibly to output it via .csv file.

  • Do you mean a list of your functions which are using a deprecated runtime, or a list of the runtimes which are deprecated?

  • Hi @James_S - Apologies for the confusion. I'm particularly looking for list of my functions that are using a deprecated runtime.

khentz
질문됨 2년 전2797회 조회
1개 답변
1

I could not find an API call that lists the deprecated runtimes. They are listed in the documentation.

Using those values, the following CLI command will find functions that are using them:

aws lambda list-functions \
        --output table \
        --query 'Functions[?Runtime==`dotnetcore2.1` || Runtime==`python2.7` ||  Runtime==`ruby2.5` || Runtime==`nodejs10.x` || Runtime==`nodejs8.10` || Runtime==`nodejs
6.10` || Runtime==`nodejs4.3-edge` || Runtime==`nodejs4.3` || Runtime==`nodejs` || Runtime==`dotnetcore2.0` || Runtime==`dotnetcore1.0`].[FunctionName,Runtime,Version,Fu
nctionArn]'
profile pictureAWS
전문가
kentrad
답변함 2년 전
  • Apologies for the confusion. I'm particularly looking for list of my functions that are using a deprecated runtime.

  • Is there a way to add the "last execution date" for each function to this list?

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

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

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

관련 콘텐츠