Uh oh!
There was an error while loading. Please reload this page.
fix(deploy): pass stack selection to diff for --target filtering - #1148
Conversation
Coverage Report
|
agentcore-cli-automation
commented
May 6, 2026
The fix passes conststackName=stackNames[0]!;
Reproduction of the original bug #980:
Even in the current test setup this passes because the test hardcodes Suggested fixes (pick one):
It's probably also worth adding a test that exercises As a side note, the issue description also flags that |
5de3cdb to
c345f3dComparec345f3d to
d618196Compared618196 to
315aa4cCompare315aa4c to
5036a35Compare5036a35 to
b9843c0CompareAddressed by no longer relying on arbitrary first stack name behavior. |
b9843c0 to
3b8979fCompare3b8979f to
a3d66b1Comparea3d66b1 to
f95c643CompareHweinstock
commented
May 7, 2026
Also fixes #1150 |
Uh oh!
There was an error while loading. Please reload this page.
Description
When
--diffor--deployis used with--target, the CLI now passes a stack selection pattern (*${targetName}*) to the CDK toolkit so only the selected target's stack is operated on, not all stacks in the synthesized app.Extracted
runDiffandrunDeployfunctions for testability via dependency injection.Related Issue
Closes#980
Type of Change
Testing
npm run test:unitandnpm run test:integnpm run typechecknpm run lintChecklist