migrate: deployed v0 project with a Gateway is unmigratable — Stack Refactor rejects AWS::BedrockAgentCore::Gateway (unsupported tag schema)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 43/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- aws, typescript
調査の方向性
Start with the agentcore migrate preflight and Stack Refactor flow, especially the supported resources check, which the issue says passes before CloudFormation rejects AWS::BedrockAgentCore::Gateway. Reproduce with a deployed v0 project containing a Gateway, then trace how resource type support is determined. Done means migration detects the unsupported type before refactoring and reports a clear explanation or a supported migration path.
索引モデルが issue の本文から書いたものです。
説明
Summary
agentcore migrate cannot migrate any deployed v0 project that contains an AgentCore Gateway. CloudFormation Stack Refactor rejects the AWS::BedrockAgentCore::Gateway resource type, so the refactor rolls back and the migration aborts.
This is not a config-authoring problem — the project is a plain agentcore create project with a Gateway added via agentcore add gateway / add gateway-target. Any v0 user who has deployed a Gateway appears to be blocked from migrating to v1.
Error
✖ AgentCore-<project>-default: failed; CloudFormation left the stack as it was
The refactor of stack 'AgentCore-<project>-default' failed (ROLLBACK_COMPLETE):
arn:aws:cloudformation:us-west-2:123456789012:stack/AgentCore-<project>-default/<uuid>:
Stack Refactor does not support AWS::BedrockAgentCore::Gateway because the resource type
defines an unsupported tag schema.. CloudFormation rolled it back, so the stack is unchanged.
The migration didn't complete, and the project's files were put back: it's v0 again.
Versions
| v0 CLI that created/deployed the project | @aws/[email protected] |
v1 CLI running migrate |
@aws/[email protected] |
@aws/agentcore-cdk in the v0 project |
0.1.0-alpha.53 |
| Region | us-west-2 |
| Node | v22 |
Reproduction
-
With
@aws/[email protected], create a project and add a runtime, a memory, and a Gateway with a Lambda target:agentcore create --name CustomerSupport --project-name CustomerSupport \ --framework Strands --model-provider Bedrock --memory none agentcore add memory --name SharedMemory --strategies SEMANTIC,SUMMARIZATION --expiry 30 agentcore add gateway --name my-gateway-secure --runtimes CustomerSupport \ --authorizer-type CUSTOM_JWT --discovery-url <cognito-discovery-url> \ --allowed-clients <client-ids> agentcore add gateway-target --type lambda-function-arn --name WarrantyCheck \ --lambda-arn <lambda-arn> --tool-schema-file <schema.json> --gateway my-gateway-secure agentcore deploy -y -vResulting
agentcore.json(v0,"version": 1) contains populatedruntimes,memories,agentCoreGateways, andonlineEvalConfigs. -
Confirm everything is deployed and
READY, and the stack isUPDATE_COMPLETE. -
Commit so the tree is clean, then with
@aws/[email protected]:agentcore migrate --yes -
The checks all pass and the migration begins, then the stack refactor fails as above.
Expected
Either the refactor supports AWS::BedrockAgentCore::Gateway, or migrate's preflight checks detect the unsupported resource type before starting and explain the situation — ideally with a documented workaround (e.g. temporarily removing the Gateway from the stack, or a migration path that does not rely on Stack Refactor).
Right now the preflight reports all checks green:
Checks
ok v0 project is a v0 project
ok cdk dependencies @aws/agentcore-cdk 0.1.0-alpha.53
ok cdk app unchanged from the app v0 ... created
ok supported resources no capacity providers or runtimes on them
ok deployed state ...
ok cdk library @aws/agentcore-cdk 1.0.0 keeps v0 names (migratedFrom)
The supported resources check in particular reads as though resource-type support has been validated, which made the failure surprising.
Actual, and credit where due
The failure is safe, which I want to call out explicitly:
- CloudFormation rolled the stack back; same stack id, status went
UPDATE_COMPLETE→UPDATE_ROLLBACK_COMPLETE. - Every runtime, gateway, and memory id and ARN was byte-identical before and after.
- The project files were reverted to v0 and the git tree was left clean.
agentcore/.cli/migrate/result-*.mdrecorded exactly what happened.
No data loss and no half-migrated state. The gap is that this is only discoverable by attempting it.
Notes
- A never-deployed v0 project with the same
agentcore.jsonmigrates fine — only the deployed path exercises Stack Refactor, so this does not reproduce without a real deploy. - Possibly related but distinct: #2599 (
migrate: v1 synth fails for v0 projects with API-key Gateway targets (missing clientSecretArn)) — that one fails at synth; this one passes synth and fails in the refactor on the resource type itself.
Impact
Found while migrating a public AWS workshop from CLI v0 to v1. The workshop introduces a Gateway partway through, so every project from that point on is unmigratable, and we have had to drop agentcore migrate from the upgrade path entirely and rewrite for native v1 commands instead. Customers following the same shape — runtime + memory + Gateway, deployed — will hit this.
- 主要言語
- TypeScript
- スター
- 339
- フォーク
- 129
- 平均マージ
- 19時間 21分
- マージ済み PR(30日)
- 125
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws/agentcore-cli のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
aws/agentcore-cli#2940 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
aws/agentcore-cli#2939 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
aws/agentcore-cli#2938 ·
メンテナーはふだん 1 日以内に返信
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")対応中かも @n1dhruv が 6 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aws/agentcore-cli#2875 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminal対応中かも @abhiramshaji-cyber が 3 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
aws/agentcore-cli#2874 ·
メンテナーはふだん 1 日以内に返信
aws/agentcore-cli の issue をすべて見る
似ている issue
-
manually bump balena-preload to ^19.0.6対応中かも @shaunmulligan が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 66/100
balena-io/balena-cli#3200 ·
メンテナーはふだん 1 日以内に返信
-
`MaterializedChatMessage._text` is quadratic in the number of text chunks (`+=` followed by `endsWith`), driving the extension host to heap OOM対応中かも @olegius88 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
microsoft/vscode-prompt-tsx#205 ·
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 64/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
melgarafael/DeskcommCRM#5340 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ehmpathy/rhachet-roles-ehmpathy#1529 ·
メンテナーはふだん 1 日以内に返信