首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用AWS-Amplify ->“放大推送”不起作用

使用AWS-Amplify ->“放大推送”不起作用
EN

Stack Overflow用户
提问于 2019-06-09 17:02:18
回答 1查看 3K关注 0票数 1

为了了解如何使用AWS-Amplify,我关注了this document

一切都很顺利,除了执行以下命令时:

代码语言:javascript
复制
$ amplify push

它是这样结束的:

代码语言:javascript
复制
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版本。

EN

回答 1

Stack Overflow用户

发布于 2019-09-12 21:38:10

在Amplify CLI中,对节点6.10的所有引用都应更新为8.10。您将在当前配置中查找的大多数引用应该在cloudformation文件中,这些文件要么是json,要么是yml。您可以手动更改这些引用并推送,如果您安装了最新版本的CLI,应该不会有什么问题。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56513290

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档