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 b0ae317 commit 73e8ac1Copy full SHA for 73e8ac1
packages/aws-cdk/lib/cxapp/cloud-assembly.ts
@@ -119,9 +119,6 @@ export class CloudAssembly extends BaseStackAssembly {
119
): Promise<StackCollection> {
120
if (topLevelStacks.length > 0) {
121
return this.extendStacks(topLevelStacks, stacks, extend);
122
- } else if (stacks.length > 0) {
123
- // Fallback to all stacks if no top-level stacks (e.g., app including stages only in top-level assembly)
124
- return new StackCollection(this, stacks);
125
} else {
126
throw new ToolkitError('No stack found in the main cloud assembly. Use "list" to print manifest');
127
}
0 commit comments