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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则