Skip to content

Commit e601f0c

Browse files
authored
chore(cli): Revert "fix(aws-cdk): include nested stacks when building changesets" (#19044)
Reverts #17396. Caused a regression in our integ tests for the CLI.
1 parent 92ae872 commit e601f0c

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

packages/aws-cdk/lib/api/deploy-stack.ts

-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ async function prepareAndExecuteChangeSet(
299299
StackName: deployName,
300300
ChangeSetName: changeSetName,
301301
ChangeSetType: update ? 'UPDATE' : 'CREATE',
302-
IncludeNestedStacks: true,
303302
Description: `CDK Changeset for execution ${executionId}`,
304303
TemplateBody: bodyParameter.TemplateBody,
305304
TemplateURL: bodyParameter.TemplateURL,

packages/aws-cdk/test/api/deploy-stack.test.ts

-12
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,6 @@ test('correctly passes CFN parameters, ignoring ones with empty values', async (
164164
}));
165165
});
166166

167-
test('correctly passes IncludeNestedStacks', async () => {
168-
// WHEN
169-
await deployStack({
170-
...standardDeployStackArguments(),
171-
});
172-
173-
// THEN
174-
expect(cfnMocks.createChangeSet).toHaveBeenCalledWith(expect.objectContaining({
175-
IncludeNestedStacks: true,
176-
}));
177-
});
178-
179167
test('reuse previous parameters if requested', async () => {
180168
// GIVEN
181169
givenStackExists({

0 commit comments

Comments
 (0)