API GATEWAY DEV PORTAL - Update Lambda Functions to nodejs20

0

I tried to update lambda functions generated by SAM for the api gateway devportal following this guide.

https://github.com/awslabs/aws-api-gateway-developer-portal

I tried to update from nodejs16 to nodejs20 but then the login process fails with the error below.

dev portal screen shot

Is it possible to update the functions to nodejs 18 or nodejs20 without breaking the flow cos aws sent a notification that they will discontinue support for nodejs 16 yet the portal guide generates functions in nodejs16

1 個回答
0

Hi, what SDK version do you use?

If you use sdk v2, the first thing you should consider, for both performance and tech debt removal, is to use SDK V3, because then in Node18 you dont need to explicitly install them in the package.json. This means you ll have to refactor your code a little bit.

https://aws.amazon.com/blogs/compute/node-js-18-x-runtime-now-available-in-aws-lambda/

profile picture
專家
已回答 2 個月前
  • But there is no direct code. The functions were generated by the aws gateway dev portal repository through SAM.

    Unless you are saying that there is a way to modify the codes in the repository to make use of v3? Is this it? Else I am not sure this helps cos I did not write the said functions.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南