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

up aws deployment error #802

Open
jskroodsma opened this issue Mar 3, 2020 · 4 comments
Open

up aws deployment error #802

jskroodsma opened this issue Mar 3, 2020 · 4 comments

Comments

@jskroodsma
Copy link

Hi, when deploying we get the following msg from aws lambda:

image

we are running the latest version of up. we have the pro version.

@kazzkiq
Copy link

kazzkiq commented Mar 3, 2020

Facing the same issue, here is the transcription for better readability:

Error: deploying: sa-east-1: updating function config: 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: 5551b6cf-ced5-4804-83b7-2dcbaae98065

It looks like apex/up uses an older version of Node? (v8.10)

@jskroodsma
Copy link
Author

jskroodsma commented Mar 4, 2020

@kazzkiq:
Found the solution in the docs: in your up.json set
{lambda:{'runtime':'nodejs12.x'}}

I suppose that this could be the default in future releases.

@kazzkiq
Copy link

kazzkiq commented Mar 4, 2020

In my case the problem was having an (very) old version locally. I was using 0.5.1 while the current version is 1.5.1.

Running up upgrade fixed the issue to me.

@tj
Copy link
Member

tj commented Mar 4, 2020

Ahhh yea the default is nodejs10.x now, but looks like that'll need an update soon if they phase out nodejs10.x for nodejs12.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants