Skip to content

Commit

Permalink
change indentation from 2 to 1
Browse files Browse the repository at this point in the history
The CloudFormation console will display 
the original template file that was 
uploaded by the CDK. To balance the 
concerns of readability and file size
the indentation has been changed from
two spaces to one space.

Co-authored-by: Pat Myron <PatMyron@users.noreply.github.com>
  • Loading branch information
mckalexee and PatMyron authored Mar 2, 2022
1 parent 52810ae commit 3e0ff7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/api/cxapp/cloud-executable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class CloudExecutable {
//
// Be sure to flush the changes we just made back to disk. The on-disk format is always
// JSON.
await fs.writeFile(stack.templateFullPath, JSON.stringify(stack.template), { encoding: 'utf-8' });
await fs.writeFile(stack.templateFullPath, JSON.stringify(stack.template, undefined, 1), { encoding: 'utf-8' });
}
}

Expand Down

0 comments on commit 3e0ff7b

Please sign in to comment.