Switching a runtime's build from CodeZip to Container fails CloudFormation
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- json, typescript
- 领域
- cloud
调研方向
在本仓库中定位 AWS::BedrockAgentCore::Runtime 的 CloudFormation 资源提供方 schema(按资源类型名称搜索),并找到 artifact 类型属性(CodeZip vs Container)。按照 CFN schema 惯例将其标记为需要替换(requires replacement),使就地 UPDATE 永远不会被计划。完成标准是 schema 校验通过,并且将 runtime 的构建从 CodeZip 切换到 Container 的栈更新会计划一次 delete/create,而不是以 "Agent artifact type cannot be updated" 失败。
由索引模型根据 Issue 内容生成。
描述
Switching a runtime's build from CodeZip to Container fails the CloudFormation update with "Agent artifact type cannot be updated" and rolls the stack back. The AWS::BedrockAgentCore::Runtime resource provider schema does not mark the artifact-type property as requiring replacement, so CloudFormation attempts an in-place UPDATE that the service API rejects outright. Since the service cannot change it in place, the schema should declare it as requiring replacement so CFN performs a delete/create automatically. Workaround: agentcore remove agent, deploy, re-add the runtime config, deploy again - which yields a new runtime ARN and execution role that then have to be re-referenced anywhere they were named, in our case a Cedar policy.
version: AgentCoreCLI/0.24.2 (darwin 25.5.0; node/v22.18.0)
- 主要语言
- TypeScript
- 星标
- 307
- 派生
- 107
- 平均合并
- 16 小时 44 分钟
- 30 天内合并 PR
- 157
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws/agentcore-cli 的其他 Issue
-
`agentcore dev` container fails with LoginTokenLoadError when using `aws login` credentials可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 80/100
aws/agentcore-cli#2606 · 4 条评论 ·
维护者通常 1 天内回复
-
[Refactor] project add credentials payment does not match Connector regex可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
aws/agentcore-cli#2533 · 3 条评论 ·
维护者通常 1 天内回复
-
ci: skip CI jobs for release commits可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
aws/agentcore-cli#2392 ·
维护者通常 1 天内回复
-
bug documentation
难度 2/5 1-3 小时 新手友好度 74/100
aws/agentcore-cli#1241 ·
维护者通常 1 天内回复
-
Support existing IAM roles for runtime container-build infrastructure可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭enhancement
难度 4/5 3-5 天 新手友好度 54/100
aws/agentcore-cli#2698 ·
维护者通常 1 天内回复
查看 aws/agentcore-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
grafana/profiles-drilldown#1212 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
grafana/traces-drilldown#980 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
openremote/openremote#3487 · 1 条评论 ·
-
triage:needs-human
难度 2/5 1-3 小时 新手友好度 67/100
garrytan/gbrain#7635 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
coollabsio/jean#867 ·
维护者通常 1 天内回复