Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: automatic nested stacks #25766

Closed
2 tasks
alibetterup opened this issue May 27, 2023 · 3 comments
Closed
2 tasks

core: automatic nested stacks #25766

alibetterup opened this issue May 27, 2023 · 3 comments
Labels
@aws-cdk/core Related to core CDK functionality effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@alibetterup
Copy link

Describe the feature

As a developer I do not care about how my resources get deployed, all I care about is that they are.

It would be a great to have CDK create nested stacks automatically when the number of resources per main stacks goes above 500 so the end users does not have to deal with creating new nested stacks or new stacks(apps).

Use Case

dealing with 500 resources per CF stack

Proposed Solution

automatic nested stacks by CDK

Other Information

No response

Acknowledgements

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

CDK version used

2.64.0

Environment details (OS name and version, etc.)

osx ventura

@alibetterup alibetterup added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels May 27, 2023
@pahud pahud changed the title (CDK): (automatic nested stacks) core: automatic nested stacks May 30, 2023
@github-actions github-actions bot added the @aws-cdk/core Related to core CDK functionality label May 30, 2023
@pahud
Copy link
Contributor

pahud commented May 30, 2023

This makes sense to me but there's a lot to consider. I am making it a p2 feature request. Please help us prioritize by upvotes.

@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels May 30, 2023
@comcalvi
Copy link
Contributor

CDK should not create nested stacks automatically for you if you exceed the resource limit in a stack. Stack names are permanently part of a resource ID, and if stateful resources (buckets, dynamo tables) are automagically put in a nested stack, you will never be able to refactor them out without losing data. Stack dependencies are already painful to manage, and this feature will increase that pain. CDK has taken the stance that users should be very explicit when defining which resources go into which stacks, since the consequences of that architecture are hard to work around.

Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/core Related to core CDK functionality effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

No branches or pull requests

4 participants