amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Lambda stops to support node.js 6.10 rumtime

Open t0t07 opened this issue 7 years ago • 8 comments

** Which Category is your question related to? ** Auth

** What AWS Services are you utilizing? ** Cognito, Lambda

** Provide additional details e.g. code snippets ** I received the notification in my AWS dashboard:

Your AWS Account currently has one or more Lambda functions using the node.js 6.10 runtime. The Node Foundation has previously published that node.js 6.x "Boron" will be declared End-of-Life (EOL) on April 2019 [1], and will stop receiving bug fixes, security updates, or performance improvements. Per the AWS Lambda runtime support policy [2], language runtimes that have reached their EOL are deprecated in AWS Lambda.

Invokes for functions configured to run on node.js 6.10 will continue to work normally, however the ability to create new Lambda functions configured to use the node.js 6.10 runtime will be disabled on April 30 2019. Code updates to existing functions using node.js 6.10 will be disabled 30 days later on May 30 2019

We encourage you to update your node.js 6.10 functions to a newer version of the Node runtime (node.js 8.10) so that you continue to benefit from important security, performance, and functionality enhancements offered by more recent releases. The newer node.js 8.10 version has improved ECMAScript support, along with other language and API improvements. The AWS Lambda programming model [3] for node.js 8.10 maintains backwards compatibility with previous versions to simplify portability. We recommend that you test your Lambda function to validate its behavior on the newer version of Node.js.

In my Lambda dashboard there is a function that I care built by amplify-cli is using node.js runtime 6.10. Is the team aware of the node.js 6.10 "deprecation"?

t0t07 avatar Mar 23 '19 22:03 t0t07

@YikSanChan We're aware of this situation and mitigating the issue my moving our custom resource node version to 8.10. I'll update this thread once we push the changes.

kaustavghosh06 avatar Apr 01 '19 18:04 kaustavghosh06

So... less than 2 working days left and still no fix for this? Seriously? This should have been done a year ago. I feel like I’ve been had.

sirshannon avatar Apr 27 '19 15:04 sirshannon

@sirshannon it is resolved. Update amp cli to the latest version and change lambda runtime to 8.10 in existing CF, if you have existing lambdas. I just did that couple days back and all worked fine.

sportyrider avatar Apr 27 '19 16:04 sportyrider

Thanks. I wonder why this issue is still open and the promised update from @kaustavghosh06 hasn’t happened...

sirshannon avatar Apr 27 '19 16:04 sirshannon

True. I was watching PR and it was merged 2 days ago. In any case, you should be good to go.

sportyrider avatar Apr 27 '19 16:04 sportyrider

We upgraded our default Cloudformation tempaltes to NodeJS 8.10 with the latest version of the CLI. Here's a quick migration guide out here if you're using an older version/template in your project - https://aws-amplify.github.io/docs/cli/lambda-node-version-update

kaustavghosh06 avatar May 17 '19 17:05 kaustavghosh06

Is Amplify console using an older version of the cli by any chance? I am running into this issue when I build using amplify console. Manual deployment work fine. Here is the message in build log. 2019-06-09T14:19:54.301Z [WARNING]: Error updating cloudformation stack 2019-06-09T14:19:59.308Z [INFO]: Following resources failed 2019-06-09T14:19:59.310Z [INFO]: Resource Name: UserPoolClientLambda (AWS::Lambda::Function) Event Type: create Reason: The runtime parameter of nodejs6.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs8.10) while creating or updating functions. (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 80901c73-8ac1-11e9-ae20-4d856eb2d917) init failed

sankranti2018 avatar Jun 09 '19 15:06 sankranti2018

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.

github-actions[bot] avatar May 27 '21 08:05 github-actions[bot]