Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create Lambda functions with Node.js 8.10 runtime #11514

Closed
ewbankkit opened this issue Jan 7, 2020 · 11 comments
Closed

Cannot create Lambda functions with Node.js 8.10 runtime #11514

ewbankkit opened this issue Jan 7, 2020 · 11 comments

Comments

@ewbankkit
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

While working on acceptance tests for #11368 I got this error:

--- FAIL: TestAccAWSPinpointApp_CampaignHookLambda (12.34s)
    testing.go:640: Step 0 error: errors during apply:
        
        Error: Error creating Lambda function: InvalidParameterValueException: The runtime parameter of nodejs8.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs12.x) while creating or updating functions.
        	status code: 400, request id: 1dc25886-3ba1-4268-ad26-4051664355e0
        
          on /var/folders/4j/lf5jdq5j4y91g80ytf6qzjwmk6drp5/T/tf-test982036154/main.tf line 15:
          (source code not available)

As announced here and documented here, lambdas with Node.js 8.10 runtime cannot be created after January 6, 2020 (or updated after February 3, 2020).

We have many acceptance tests with runtime = "nodejs8.10" that will need to be updated.

Also, after 2/3/2020 we should remove lambda.RuntimeNodejs810 (and other deprecated runtimes) as a valid value for the aws_lambda_function.runtime attribute.

@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 7, 2020
@ewbankkit
Copy link
Contributor Author

Closed via #11517.

@AHMetaCubes
Copy link

Im getting this error - but not sure how to fix ....

@AHMetaCubes
Copy link

Im having issues with this with aws-amplify

@bigorangemachine
Copy link

Same here. Changed my cloudformation-template.yml to Runtime: nodejs12.x under Type: 'AWS::Lambda::Function'.

I am wondering if there is another lambda that now requires the Runtime?

@AHMetaCubes
Copy link

AHMetaCubes commented Jan 9, 2020 via email

@bigorangemachine
Copy link

bigorangemachine commented Jan 9, 2020

@TheReactGuys ,

Hope you find this. amplify-cli/issues/3149

Mines working now. Weird I had v4.11 of the amplify cli... was able to create a new instance. Maybe just an issue with existing instances. Anyways anyone googling hope you find this. Just make sure the version is nodejs12.x in the yaml not nodejs10.x and v4.11 is important

@cryptoPickle
Copy link

cryptoPickle commented Jan 10, 2020

It is because node 8.10 is not going to be supported anymore.

  1. Disable Function Create – Beginning January 6, 2020, customers will no longer be able to create functions using Node.js 8.10

  2. Disable Function Update – Beginning February 3, 2020, customers will no longer be able to update functions using Node.js 8.10

You can update your runtime later version of your nodejs. Also you may need to update your aws provider

@sandeepkumar928
Copy link

In template.yaml file change Runtime8.10 to Runtime: nodejs12.x and it should work.

@gabrieltorreswm
Copy link

In template.yaml file change Runtime8.10 to Runtime: nodejs12.x and it should work.

I had same issue,
I just needed update me CLI amplify. (npm install -g @aws-amplify/cli)

I hope this help.

@ddisqq
Copy link

ddisqq commented Feb 14, 2020

Just to add some additional helpers for others --

I updated the Amplify CLI(npm install -g @aws-amplify/cli) and then reran 'amplify init' with the new CLI. I had to hardcode updates in the yml files where 'nodejs8.10' was previously and automatically coming back in during 'amplify push'. Overwriting 'nodejs8.0' with 'node12.x' then rerunning 'amplify push' gives me a clean backend deploy.

Clean 'amplify push' for me now, thanks to all above.

@ghost
Copy link

ghost commented Feb 14, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Feb 14, 2020
@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants