【发布时间】:2021-11-03 07:15:59
【问题描述】:
我已经通过sam init 创建了 sam 项目文件。
我选择了“nodejs14.x”运行时和hello world模板
sam build 看起来不错。
但是sam deploy --guided 失败并且错误消息是
Looking for resources needed for deployment:
Creating the required resources...
Error: Failed to create managed resources: Waiter StackCreateComplete failed: Waiter encountered a terminal failure state: For expression "Stacks[].StackStatus" we matched expected path: "ROLLBACK_COMPLETE" at least once
在 aws cloudFormation 控制台中,我发现存储桶策略创建失败。
我已经配置了具有管理员角色的 aws 凭据(权限:AdministratorAccess),所以我敢打赌,它被授予创建存储桶策略的权限。 那么,我的项目出了什么问题?请帮帮我。
【问题讨论】:
-
我在一个帐户中遇到了同样的错误,但它在另一个帐户中神奇地解决了。尝试删除堆栈并再次运行 sam deploy -g,以防万一它神奇地自行解决。
标签: amazon-web-services aws-lambda aws-serverless