我使用sam deploy命令将lambda部署到AWS。有时,我会得到这个错误,An error occurred (ValidationError) when calling the CreateChangeSet operation: Stack:arn:aws:cloudformation:ap-southeast-2:xxxx:stack/xxxx/xxxx is in ROLLBACK_COMPLETE state and can not be updated.,我知道在以前的部署中会发生故障。我可以手动删除AWS克隆形成控制台中的堆栈,然后重试命令。但是我想知道是否有办法强制命令
尝试使用CloudFormation方法(如本文所述:)在AWS中执行ECS任务的蓝色/绿色部署,但部署失败。
初始堆栈部署工作正常,使用正确的负载均衡器和目标组等按照预期部署和运行ECS任务。然而,当更新任务定义时,要触发蓝色/绿色部署,它将失败,并导致消息失败:
Imports and exports are currently not supported on templates using hooks
部署是在CodeDeploy中创建的,因此显然是按预期触发的,但是AWS控制台中的部署屏幕显示了以下错误:
The deployment failed because the stack
我修改了我的CloudFormation模板,使之在我的DynamoDB表中有不同的散列和排序键。
当我试图重新部署堆栈时,我得到了UPDATE_ROLLBACK_COMPLETE,在检查时,我看到了错误:
Error: CloudFormation cannot update a stack when a custom-named resource requires replacing. Rename 'MYResourceXXX' and update the stack again。
这似乎是因为我有一个名称相同但架构不同的现有表。
如何让CloudFormation重新
我正在尝试将cloudformation堆栈部署到一个跨帐户帐户中。但是,当我部署cloudfromation.yml文件时,我会得到以下错误。我甚至尝试过使用cloudformation.yaml,但同样的错误。
但是,当我尝试创建S3桶时,这个桶是没有任何问题创建的。只有在执行lambda部署时才会出现此问题。
Waiting for changeset to be created..
Failed to create the changeset: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal f