From 58f38f9f2bbda891a91ae9e4edea7628a5d349ec Mon Sep 17 00:00:00 2001 From: Pat Myron Date: Thu, 31 Mar 2022 17:00:55 -0700 Subject: [PATCH] reduce CloudFormation template size https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html --- bin/sam-translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sam-translate.py b/bin/sam-translate.py index e533e2949..34854e48e 100755 --- a/bin/sam-translate.py +++ b/bin/sam-translate.py @@ -107,7 +107,7 @@ def transform_template(input_file_path, output_file_path): region=None, ) cloud_formation_template = transform(sam_template, {}, ManagedPolicyLoader(iam_client), feature_toggle) - cloud_formation_template_prettified = json.dumps(cloud_formation_template, indent=2) + cloud_formation_template_prettified = json.dumps(cloud_formation_template, indent=1) with open(output_file_path, "w") as f: f.write(cloud_formation_template_prettified)