Skip to content

core: Nested Stack templates cannot be suppressed natively by the CDK #32798

@Rizxcviii

Description

@Rizxcviii

Describe the feature

Allow nested stack templates to be suppressed by removing indentation.

Use Case

When a nested stack gets too large in size, we reach an error similar to the follow

ExampleStack failed: Error: The stack named ExampleStack failed to deploy: UPDATE_ROLLBACK_COMPLETE: Template may not exceed 1000000 bytes in size.

Proposed Solution

Add the same functionality found within a Stack construct onto a NestedStack construct.

Other Information

This already exists, and it would trying to replicate the suppressTemplateIndentation onto NestedStacks.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.174.0

Environment details (OS name and version, etc.)

Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/coreRelated to core CDK functionalityeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions