You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(toolkit): multi-stack apps cannot be synthesized or deployed (#911)
Due to a recent cx protocol change (#868), some toolkit commands stopped
respecting the "selected" stacks (the ones specified in the command line).
"cdk synth" would always return the first stack, and "cdk deploy" would
always deploy all stacks.
Since we have test coverage gaps in the toolkit (#294), we did not
discover this before we released.
This change includes an initial set of integration tests for the
toolkit. At the moment they should be manually executed when toolkit
changes are made, but we will execute them in a pipeline.
Fixes#910
thrownewError(`Multiple stacks selected (${listStackNames(stackIds)}), but output is directed to stdout. Either select one stack, or use --output to send templates to a directory.`);
339
+
thrownewError(`Multiple stacks selected (${listStackNames(stacks)}), but output is directed to stdout. Either select one stack, or use --output to send templates to a directory.`);
340
340
}
341
341
342
-
constresponse=awaitsynthesizeStacks();
343
-
constsynthesizedStacks=response.stacks;
344
-
345
342
if(outputDir==null){
346
-
returnsynthesizedStacks[0].template;// Will be printed in main()
343
+
returnstacks[0].template;// Will be printed in main()
thrownewError(`Stack ${stack.name} does not define an environment, and AWS credentials could not be obtained from standard locations or no region was configured.`);
@@ -603,6 +598,7 @@ async function initCommandLine() {
0 commit comments