使用aws-amplify cli v4.17.1,当放大项目中包含某个功能时,我似乎无法使用'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
以前有没有其他人遇到过?
答案 0 :(得分:2)
通过升级以放大CLI版本4.17.2解决了该问题