[英]Runtime variable in serverless.yml isn't setting node version
I'm running lambda functions on aws and deploying with Serverless. 我在aws上运行lambda函数并使用Serverless进行部署。 Updating node from 6.10 to 10.16, I updated nodejs with n, and changed the "runtime" line in the serverless.yml file to read:
将节点从6.10更新到10.16,我用n更新了nodejs,并将serverless.yml文件中的“runtime”行更改为:
provider:
name: aws
runtime: nodejs10.16
stage: prod
region: us-west-2
When I go to deploy with serverless, I get the following message: 当我使用无服务器部署时,我收到以下消息:
Serverless Error ---------------------------------------
An error occurred: GetLaunchEventListLambdaFunction - The runtime
parameter of nodejs6.10 is no longer supported for creating or updating
AWS Lambda functions. We recommend you use the new runtime
(nodejs10.x) while creating or updating functions. (Service:
AWSLambdaInternal; >Status code: 400; Error Code:
InvalidParameterValueException; Request >ID: abc26ccc-9289-431f-abd6-
61a73bdb4c2e).
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: linux
Node Version: 6.10.3
Serverless Version: 1.27.3
What am I missing? 我错过了什么?
正确的语法应该是runtime: nodejs10.x
但我来到这里是因为我有同样的问题,即使(我认为是)正确的语法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.