core: suppressTemplateIndentation
option not supported in NestedStackProps
#28836
Closed
1 of 2 tasks
Labels
@aws-cdk/core
Related to core CDK functionality
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Describe the feature
I'm working on creating a nested stack with a template that is larger than 1MB (it's currently at 3.1MB). After reviewing #25892, it appears that efforts have been made to reduce the size of the main stack's template. It would be beneficial to have a similar feature for nested stacks.
Use Case
The rationale for implementing this feature is essentially the same as the reasons for minifying the main stack's template. This also helps keep the experience consistent between
Stack
andNestedStack
.Proposed Solution
The required code change appears to be fairly straightforward, closely resembling the changes made in the original pull request.
Place to change:
aws-cdk/packages/aws-cdk-lib/core/lib/nested-stack.ts
Line 223 in e1e973b
Relevant changes from previous PR:
aws-cdk/packages/aws-cdk-lib/core/lib/stack.ts
Line 1077 in e1e973b
The same context key can be re-used and the new option is
NestedStackProps
can have the same name as the one in StackProps:suppressTemplateIndentation
Other Information
No response
Acknowledgements
CDK version used
2.96.1
Environment details (OS name and version, etc.)
MacOS 13.6.3
The text was updated successfully, but these errors were encountered: