创建函数时无法放大推送

问题描述 投票:0回答:1

使用aws-amplify cli v4.17.1,当amplify项目中包含函数时,我似乎无法使用'amplify push'命令来推送更改。

例如我使用amplify add function命令创建了一个简单的hello world函数。然后使用amplify build function命令构建函数。

最后,在运行放大推送时-我收到以下错误。

× An error occurred when pushing the resources to the cloud

Only one CloudFormation template is allowed in the resource directory
An error occurred during the push operation: Only one CloudFormation template is allowed in the resource directory

以前是否有人遇到过?

aws-amplify aws-amplify-cli
1个回答
0
投票

通过升级以放大CLI版本4.17.2解决了该问题

© www.soinside.com 2019 - 2024. All rights reserved.