apex / up

Deploy infinitely scalable serverless apps, apis, and sites in seconds to AWS.
https://up.docs.apex.sh
MIT License
8.8k stars 380 forks source link

up aws deployment error #802

Open jskroodsma opened 4 years ago

jskroodsma commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

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 commented 4 years ago

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