up icon indicating copy to clipboard operation
up copied to clipboard

up aws deployment error

Open jskroodsma opened this issue 5 years ago • 4 comments

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.

jskroodsma avatar Mar 03 '20 13:03 jskroodsma

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)

kazzkiq avatar Mar 03 '20 22:03 kazzkiq

@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.

jskroodsma avatar Mar 04 '20 07:03 jskroodsma

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.

kazzkiq avatar Mar 04 '20 12:03 kazzkiq

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

tj avatar Mar 04 '20 14:03 tj