Skip to content

rollback the runtime to node v14

0

Hello,

I deployed my lambda function that is updated to node20. I also updated my AWS runtime environment to Nodev20 using UI. However, the function does not work and I want to rollback the runtime to Node14. However, the UI does not have v14 anymore (the smallest is v16). Do we have any manual way so that I could rollback to node14?

Note: I am using Alias (dev and prod). Both alias now are using v20 so the app is broken

Many thanks

asked a year ago418 views
2 Answers
0

Hello.

Node.js 14 is listed as a deprecated version, so you probably can't roll back to it.
https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-deprecated

EXPERT
answered a year ago
  • yep, I knew that. But I hope that there is a manual way to rollback

  • As stated in the document attached by @Steve_M, Lambda cannot be created in Nodejs14 in the first place, so I don't think rollback is possible.

0

Not possible I'm afraid.

https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels

For at least 30 days after a runtime is deprecated, you’re still able to create new Lambda functions using that runtime. Starting from 30 days after deprecation, Lambda begins blocking the creation of new functions.

That date was 9th January 2024, after which new functions cannot be created with Node.js 14 https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-deprecated

EXPERT
answered a year ago
  • That is too bad. My lambda function has dev and prod alias. To test in dev i need to update the environment from v14 to v20 for testing just in dev. As both dev and prod has the same runtime env, my app now is broken. Thank you anyway

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.