Express Mode: the CLI offers a retry-with-rollback that cannot succeed
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 38/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- aws, typescript
调研方向
Start in toolkit-lib at DeployStackResult and the ReplacementRequiresUnwedge path, then read the related context in #1969, #1970, and #1745. Determine the public API shape for this express-mode case and verify how consumers can distinguish it from the existing result members; done means the API decision is implemented without reopening the SEV path.
由索引模型根据 Issue 内容生成。
描述
When a replacement was detected on a stack that is already failed, cdk deploy --express returned replacement-requires-rollback; cdk-toolkit then prompted to redeploy with rollback enabled, and because the confirmation defaults to yes, a non-interactive caller ran it. That deployment cannot succeed:
Change includes a replacement which cannot be deployed with "--no-rollback". Proceeding with deployment with rollback enabled (--force).
ValidationError: This stack is currently in a non-terminal [UPDATE_FAILED] state. To update the stack from this state, please use the disable-rollback parameter with update-stack API. To rollback to the last known good state, use the rollback-stack API
Both remedies in that error are dead ends for an express stack: disable-rollback is the condition CloudFormation refuses replacements under, and RollbackStack is unsupported for stacks last updated with EXPRESS mode. Only replaying the last stable template works, which is what #1970 documents.
#1969 closes this path by throwing ReplacementRequiresUnwedge instead of returning a result, so no prompt is offered and CI cannot auto-run the doomed deployment.
What remains open is the API shape. toolkit-lib consumers now get an error rather than a typed result for this case, where a third member of DeployStackResult — e.g. replacement-needs-unwedge-first — would let programmatic callers branch on it. Neither existing member fits: replacement-requires-rollback means "retry with rollback enabled", and failpaused-need-rollback-first routes to RollbackStack, which #1745 deliberately steered express deployments away from. That is a public addition, so it was kept out of the SEV fix.
CloudFormation is expected to lift the underlying restriction around 2026-11-15, which would make this case rare without changing the API question.
#NNNN here means aws/aws-cdk-cli; note aws/aws-cdk#1931 is an unrelated closed issue.
- 主要语言
- TypeScript
- 星标
- 110
- 派生
- 138
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 55
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws/aws-cdk-cli 的其他 Issue
-
aws-cdk bug needs-triage
难度 2/5 1-3 小时 新手友好度 76/100
aws/aws-cdk-cli#2179 ·
维护者通常 1 天内回复
-
(cli): deploy waits forever when an AWS API call gets no response, because requestTimeout only logs a warning可能已有人在做 @abhiramshaji-cyber 于 27 天前认领。 未关闭aws-cdk bug p2
难度 2/5 1-3 小时 新手友好度 76/100
aws/aws-cdk-cli#2097 ·
维护者通常 1 天内回复
-
(bootstrap) FilePublishingRoleDefaultPolicy permission incorrect when FileAssetsBucketKmsKeyId is an ARN value可能已有人在做 @lemon0333 于 95 天前认领。 未关闭bug p2
难度 2/5 1-3 小时 新手友好度 74/100
aws/aws-cdk-cli#921 · 1 条评论 ·
维护者通常 1 天内回复
-
(garbage-collection): cdk gc takes hours on a large bootstrap bucket可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 3/5 1-2 天 新手友好度 72/100
aws/aws-cdk-cli#2165 ·
维护者通常 1 天内回复
-
(cli): cdk flags --set always reports no template differences before applying flags可能已有人在做 @go-to-k 于 9 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
aws/aws-cdk-cli#2153 ·
维护者通常 1 天内回复
相似的 Issue
-
Diagram: Gantt qa-manually-tested Type: Bug / Error
难度 2/5 1-3 小时 新手友好度 65/100
mermaid-js/mermaid-v13#1255 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 1/5 1 小时以内 新手友好度 82/100
BaseAdresseNationale/adresse.data.gouv.fr#2620 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复