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 Respuesta
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
EXPERTO
respondido hace 2 meses
  • 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.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas