Open jskroodsma opened 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)
@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.
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.
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
Hi, when deploying we get the following msg from aws lambda:
we are running the latest version of up. we have the pro version.