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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ