AWS SAM Hello World部署失败求助:ROLLBACK_FAILED错误
AWS SAM HelloWorld项目部署失败
数月前可正常运行的AWS SAM HelloWorld项目,当前部署失败。
操作步骤
执行命令:sam deploy --guided,交互流程如下:
Looking for config file [samconfig.toml] : Not found Setting default arguments for 'sam deploy' ========================================= Stack Name [sam-app]: AWS Region [eu-west-2]: #Shows you resources changes to be deployed and require a 'Y' to initiate deploy Confirm changes before deploy [y/N]: y #SAM needs permission to be able to create roles to connect to the resources in your template Allow SAM CLI IAM role creation [Y/n]: y #Preserves the state of previously provisioned resources when an operation fails Disable rollback [y/N]: y HelloWorldFunction may not have authorization defined, Is this okay? [y/N]: y Save arguments to configuration file [Y/n]: y SAM configuration file [samconfig.toml]: SAM configuration environment [default]:
错误信息
部署过程中抛出如下错误:
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_FAILED" at least once
已尝试的解决方案
- 重新通过brew安装aws-sam-cli
- 删除CloudFormation栈后再次执行
sam deploy -g - 赋予自身AdministratorAccess权限后重试
- 使用新的令牌和密钥重置AWS凭证
- 在M1 Mac上分别尝试x86和ARM版本brew安装的SAM
- 升级aws-cli
- 查阅相关Stack Overflow帖子
问题仍未解决,恳请各位提供帮助。
内容的提问来源于stack exchange,提问作者Ray Chang
相关产品推荐
相关产品推荐

