question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow use of nodejs10.x for various "built in" Amplify Lambda functions

See original GitHub issue

Is your feature request related to a problem? Please describe. NodeJS 8 is EOL at the end of 2019, early 2020. Amazon has announced that deploying new Lambda functions using NodeJS 8.x will not be possible on or after the 6th of January 2020. Updating existing functions running on NodeJS 8, will not be possible around the 6th of February 2020.

The Auth/UserPool lambda function, and other functions like UpdateRoles*, which are “auto generated” by Amplify, are running on NodeJS 8.10 and manually changing this seems not to be possible due to the following error:

UPDATE_FAILED UserPoolClientLambda AWS::Lambda::Function Mon Oct 21 2019 04:13:13 GMT-0500 ZipFile can only be used when Runtime is set to either of nodejs, nodejs4.3, nodejs6.10, nodejs8.10, python2.7, python3.6, python3.7.

Updating some functions manually does not seem to be possible, so maybe this should happen automatically or an enforced migration should happen?

Describe the solution you’d like Even though it’s a few months away, starting this process now, should make this transition smooth for everyone, as most active projects would have migrated before Lambda will enforce and block NodeJS 8 from working.

Additional context We recently hit a Python update on Lambda which broke DB to Elasticsearch overnight, by auto migrating to NodeJS 10.x now, history won’t repeat itself.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
multidiscommented, Dec 13, 2019

Per latest AWS notices:

Beginning January 6, 2020, customers will no longer be able to create functions using Node.js 8.10

Currently, cli-generated functions for e.g. adding users to groups in auth or storage triggers use node 8 runtime. Does this imply after Jan 6 amplify push will result in errors when such features are selected? Any workarounds? Or does the AWS roadmap has fixes mentioned above scheduled in December? We anticipate moving a development setup into production mid-Jan so trying to get some clarity for planning…

0reactions
github-actions[bot]commented, May 26, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Functions - Build options - AWS Amplify Docs
Use build options for Amplify's function category to execute a script before a function is deployed, e.g. to transpile Typescript or ES6 with...
Read more >
Node.js 16.x runtime now available in AWS Lambda
You can now develop AWS Lambda functions using the Node.js 16 runtime. ... To use this new version, specify a runtime parameter value...
Read more >
Amplify fails to push auth - nodejs8.10 - Stack Overflow
According to AWS Lambda Runtime Support Policy, AWS Lambda deprecates Node.js runtime Node.js 8.10 on January 6th, 2020. The Amplify CLI code ...
Read more >
Amplify auto-generated lambda functions using Node 12
Additionally, users can link multiple logins with AWS Management Console or AWS Builder ID so that community contributions live in a single re:Post...
Read more >
AWS-Amplify/Lobby - Gitter
@nipoonp if all else fails, use intellij to write in java, then convert to ... Having a huge problem with turnaround time for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found