为了了解如何使用AWS-Amplify,我关注了this document。
一切都很顺利,除了执行以下命令时:
$ amplify push它是这样结束的:
Following resources failed
Resource Name: PinpointFunction (AWS::Lambda::Function)
Event Type: create
Reason: The runtime parameter of nodejs6.10 is no longer supported
for creating or updating AWS Lambda functions. We recommend you use
the new runtime (nodejs8.10) while creating or updating functions.
(Service: AWSLambdaInternal; Status Code: 400;
Error Code: InvalidParameterValueException; Request ID: xxxx-8a8e-.....-yyyy-zzzz)
✖ An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete为什么我会得到这个错误?我已经在过去运行过相同的命令。我也没有改变我的NodeJS版本。
发布于 2019-09-12 21:38:10
在Amplify CLI中,对节点6.10的所有引用都应更新为8.10。您将在当前配置中查找的大多数引用应该在cloudformation文件中,这些文件要么是json,要么是yml。您可以手动更改这些引用并推送,如果您安装了最新版本的CLI,应该不会有什么问题。
https://stackoverflow.com/questions/56513290
复制相似问题