We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73e8ac1 commit 04716eeCopy full SHA for 04716ee
packages/aws-cdk/lib/cxapp/cloud-assembly.ts
@@ -103,7 +103,9 @@ export class CloudAssembly extends BaseStackAssembly {
103
throw new ToolkitError('This app contains no stacks');
104
}
105
106
- if (allTopLevel) {
+ if (allTopLevel && options.defaultBehavior === DefaultSelection.AllStacks) {
107
+ return new StackCollection(this, stacks);
108
+ } else if (allTopLevel) {
109
return this.selectTopLevelStacks(stacks, topLevelStacks, options.extend);
110
} else if (patterns.length > 0) {
111
return this.selectMatchingStacks(stacks, patterns, options.extend);
0 commit comments