3

使用 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

以前有没有其他人遇到过这种情况?

4

1 回答 1

3

该问题已通过升级到 Amplify CLI 版本 4.17.2 得到解决

于 2020-03-26T23:18:14.833 回答