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

agentcore init command + portability gaps: aws-targets.json gitignore guidance + CDK re-scaffold support

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
aws, typescript

调研方向

先阅读 agentcore.json、aws-targets.json 和 agentcore/cdk/ 目录相关的行为,然后跟踪 agentcore deploy 和 agentcore create 命令。明确重新生成脚手架时应如何处理现有代码和配置。满足文档中规定的验收标准即表示完成:来自一个 AWS 账户的 agentcore.json 可以通过一条 agentcore deploy 命令部署到新账户中。

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

描述

enhancement
Description

I'm not finding an easy way to create a project using agentcore toolkit cli and making it portable. I've found a few gaps such as:

  • aws-targets.json hardcodes account + region — if you clone the repo elsewhere without it, agentcore deploy fails. But the file is environment-specific so it shouldn't be committed with real values.
  • agentcore/cdk/ is auto-generated — if missing, deploy fails ("no CDK project"), but if you run agentcore create to regenerate it, it refuses because the directory isn't empty.
    There's no agentcore init that re-scaffolds just the infrastructure around existing code/config.

It would be very useful to have a way to have portable agentcore.json files and a mechanism to recreate the CDK project from scratch. This can also help with updating CDK to newer versions when agentcore cli is updated.

Acceptance Criteria
  • An agentcore.json created to run in an AWS account can be deployed in a new account with just one command: agentcore deploy
Additional Context

No response

主要语言
TypeScript
星标
298
派生
99
平均合并
17 小时 26 分钟
30 天内合并 PR
241

环境准备

从这里开始

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

aws/agentcore-cli 的其他 Issue

查看 aws/agentcore-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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