Allow use of nodejs10.x for various "built in" Amplify Lambda functions
See original GitHub issueIs 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:
- Created 4 years ago
- Reactions:7
- Comments:11 (4 by maintainers)
Per latest AWS notices:
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 6amplify 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…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.