DeleteWorkloadIdentity fails with ValidationException

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
62/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
backend, cloud

调研方向

Two requests in one issue: start by locating where DeleteWorkloadIdentity is invoked in the AgentCoreCLI codebase and where runtime deletion is handled, to see why linked identities are rejected and where a cascade could hook in. Separately, open the @aws/agentcore-cdk package and find AgentEcrRepository / AgentEcrRepositoryProps to see where the KMS key is hardcoded. Done means a documented deletion path for runtime-owned identities and encryption/encryptionKey props exposed, verified by the package's existing tests or a new one.

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

描述

DeleteWorkloadIdentity fails with ValidationException 'WorkloadIdentity is linked to a service and cannot be deleted by the caller' for identities created by AgentCore Runtime, and deleting a runtime does not remove its identity, so orphans accumulate with no cleanup path (we have 102). Please cascade deletion with the runtime or allow owner deletion. (2) @aws/agentcore-cdk AgentEcrRepository hardcodes a per-repo customer managed KMS key with enableKeyRotation true and AgentEcrRepositoryProps offers no opt out. ECR AES256 and aws/ecr are free and aws/ecr rotates annually, so this adds USD 1/month per repo plus USD 2/month more after two rotations for no benefit. ECR encryption is immutable after creation so there is no remediation. Please expose encryption and encryptionKey as props. Still present in 0.1.0-alpha.46.

Version: AgentCoreCLI/0.22.0 (darwin 25.5.0; node/v22.13.0)

主要语言
TypeScript
星标
339
派生
129
平均合并
19 小时 21 分钟
30 天内合并 PR
125

环境准备

从这里开始

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

aws/agentcore-cli 的其他 Issue

查看 aws/agentcore-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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