Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cli): remove CDK_INTEG_MODE hack #32539

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions packages/aws-cdk/lib/cdk-toolkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -904,21 +904,6 @@ export class CdkToolkit {
return undefined;
}

// This is a slight hack; in integ mode we allow multiple stacks to be synthesized to stdout sequentially.
// This is to make it so that we can support multi-stack integ test expectations, without so drastically
// having to change the synthesis format that we have to rerun all integ tests.
//
// Because this feature is not useful to consumers (the output is missing
// the stack names), it's not exposed as a CLI flag. Instead, it's hidden
// behind an environment variable.
const isIntegMode = process.env.CDK_INTEG_MODE === '1';
if (isIntegMode) {
printSerializedObject(
stacks.stackArtifacts.map((s) => obscureTemplate(s.template)),
json ?? false,
);
}

// not outputting template to stdout, let's explain things to the user a little bit...
success(`Successfully synthesized to ${chalk.blue(path.resolve(stacks.assembly.directory))}`);
print(
Expand Down
Loading