Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Switching a runtime's build from CodeZip to Container fails CloudFormation

未关闭 适合新手
#2,538 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws/agentcore-cli 的其他 Issue

查看 aws/agentcore-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。