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

Support existing IAM roles for runtime container-build infrastructure

未关闭
#2,698 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@proton0210 已经在做这个了。

开始于 2026年10月25日。

  • #2700 来自 @proton0210 —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
54/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
aws, typescript

调研方向

Start by tracing the agentcore add runtime command through its configuration handling, then inspect the @aws/agentcore-cdk runtime and container-build integration. Use agentcore.json to verify that supplied ARNs persist through build and deploy operations, and identify where shared CodeBuild configuration is validated. Done means all three supplied roles are imported without permission changes, omitted roles still trigger automatic creation, conflicts are rejected clearly, and tests and required trust/permission documentation are added.

由索引模型根据 Issue 内容生成。

描述

enhancement
Description

agentcore add runtime --role-arn supports an existing runtime execution role. Container deployments still create two additional roles: a CodeBuild execution role and a Lambda execution role for the container-build handler.

This blocks container deployments in environments where IAM roles must be provisioned centrally.

Allow users to supply these roles when adding a runtime. Proposed flag names:

agentcore add runtime \
  --name myAgent \
  --language python \
  --role-arn <runtime-role-arn> \
  --container-build-role-arn <codebuild-role-arn> \
  --container-build-handler-role-arn <lambda-role-arn>

Persist the ARNs in agentcore.json and expose equivalent configuration in @aws/agentcore-cdk.

Import supplied roles without modifying their permissions. Preserve automatic role creation when the options are omitted.

Acceptance Criteria
  • Supplying all three roles produces no IAM roles or policies for the runtime or its container-build infrastructure.
  • The configuration survives subsequent build and deploy operations.
  • Shared CodeBuild infrastructure handles supplied roles consistently across runtimes and rejects conflicting configuration clearly.
  • Documentation specifies required trust relationships and permissions for each role.
  • Tests cover supplied roles, default role creation, and conflicting shared-build configuration.
Additional Context

This covers runtime container-build infrastructure. CDK bootstrap remains a separate prerequisite for environments that prohibit role creation.

主要语言
TypeScript
星标
307
派生
107
平均合并
18 小时 56 分钟
30 天内合并 PR
166

环境准备

从这里开始

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

aws/agentcore-cli 的其他 Issue

查看 aws/agentcore-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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