Updating runtime of lambda function to nodejs18.x gives error

0

Hi, I am new here and trying to understand how to use Lambda functions in Amplify.

I have started using Amplify in an application a year ago. Back then, I created a Lambda function for Admin Queries which was automatically generated using nodejs 14.x I was recently informed by Amazon of the end-of-life support for nodejs 14.x and asked to update the affected entity (the admin queries function).

I was provided with the links below [1] https://endoflife.date/nodejs [2] https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html [3] https://aws.amazon.com/cli/ [4] https://aws.amazon.com/support

with no specific link regarding detailed method to do the upgrade I searched and found the following link https://docs.amplify.aws/cli/function/configure-options/

With these steps my function runtime was updated to 18.x but it now returns "Request failed with status code 502" when I call /listUsers

reverting it back to nodejs 14.x or even 16.x works fine.

Any ideas?

  • Have you reviewed the code to see if nodejs 18.x have added/removed syntax or configurations in the code that nodejs14.x didn't have?

    I believe this is more a nodejs problem, than a lambda function problem.

답변 없음

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

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

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

관련 콘텐츠