Support selective/subset runtime deployment within a single project (--runtimes= or group/tag filter)

オープン
#2,535 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
cli

調査の方向性

Start at src/cli/commands/deploy/types.ts (DeployOptions) and trace how agentcore deploy enumerates harnesses from agentcore.json, plus where toStackName() derives stack identity. Decide which of the two proposed designs to implement — a --runtimes=/--harness= filter or a group/label field on HarnessRegistryEntrySchema — and plumb it through deploy, diff and plan. Done looks like: unlisted runtimes are skipped in plan/diff/deploy output while listed ones deploy unchanged, with tests covering filtering and an error for unknown runtime names.

索引モデルが issue の本文から書いたものです。

説明

Problem

agentcore deploy always deploys every runtime/harness declared in a project's agentcore.json, because each CloudFormation stack is derived solely from (project name, target name) (toStackName()). There is currently no way to deploy only a subset of runtimes within a single project:

  • DeployOptions only exposes target, yes, progress, verbose, json, plan, diff — no runtime/harness filter (src/cli/commands/deploy/types.ts).
  • tags exist on project/runtime entries (TagsSchema) but are plain AWS resource tags, not wired into any deploy-selection logic.
  • HarnessRegistryEntrySchema only has name + path — no group/label field to filter on.

Impact

In a monorepo with many independent agent runtimes (20+), this forces splitting into several separate agentcore.json/CDK projects purely to limit blast radius and avoid redeploying unrelated agents on every change — duplicating project config, CDK stacks, and CI wiring per group. This also seems related to the stack-naming collision reported in #2104, which stems from the same one-stack-per-project-and-target design.

Request

Support deploying a subset of runtimes within a single project, via either:

  1. A --runtimes=<name1,name2> (or --harness=) flag on deploy (and ideally diff/plan) to target only the listed runtimes, or
  2. An optional group/label field on runtime/harness registry entries, filterable with something like --group=<name>.

This would let a single project declare many runtimes while still allowing fine-grained, independent deployments — removing the need to artificially split a monorepo into multiple AgentCore projects just to achieve deployment isolation.

Related

  • #2104 — stack collision, same root cause (stack identity derived solely from project+target)
  • #1187 — multi-target operations proposal (different scope: environments, not runtime subsets)
  • #2216 (closed, not merged) — explored imperative per-harness deploy behind a feature flag, but still deploys all declared harnesses, not a filtered subset

Current workaround

Maintaining multiple separate agentcore.json/CDK projects, one per logical group of runtimes, so that each group can be deployed independently.

主要言語
TypeScript
スター
339
フォーク
129
平均マージ
19時間 21分
マージ済み PR(30日)
125

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/agentcore-cli のほかの issue

aws/agentcore-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。