From 7248aee73cb42bb77360ba1ceb5cb2da7f8a5fa4 Mon Sep 17 00:00:00 2001 From: Pat Myron Date: Thu, 31 Mar 2022 10:31:13 -0700 Subject: [PATCH] perf: reduce CloudFormation template size https://github.com/aws/aws-cdk/issues/18694 https://github.com/aws/aws-cdk/pull/18886 https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html --- packages/@aws-cdk/core/lib/stack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@aws-cdk/core/lib/stack.ts b/packages/@aws-cdk/core/lib/stack.ts index d6278d05834e3..4960991a08b26 100644 --- a/packages/@aws-cdk/core/lib/stack.ts +++ b/packages/@aws-cdk/core/lib/stack.ts @@ -793,7 +793,7 @@ export class Stack extends CoreConstruct implements ITaggable { Annotations.of(this).addInfo(`Number of resources: ${numberOfResources} is approaching allowed maximum of ${this.maxResources}`); } } - fs.writeFileSync(outPath, JSON.stringify(template, undefined, 2)); + fs.writeFileSync(outPath, JSON.stringify(template, undefined, 1)); for (const ctx of this._missingContext) { if (lookupRoleArn != null) {