-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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] Only One Stack per Stacksynthesizer possible? #11528
Comments
It's how these objects currently behave. One could consider it a bug, and I feel you that this could have been checked. But I agree with you that it's worth addressing. I think I might have an idea for it. |
Well unfortunately this is no longer fixable without breaking backwards compatibility :(. |
If the same StackSynthesizer object is used for multiple stacks, only the last one is properly synthesized to the cloud assembly. Ideally, we would have made it so that there is a difference between the specifying `StackSynthesizer` object and a "bound" version of the `StackSynthesizer` (bound to a `Stack`). Unfortunately, we cannot introduce that change without heavy contortions in order not to break backwards compatibility, so the simple thing to do right now is to make it blindingly obvious that "you cannot do that". Fixes #11528.
…1635) If the same StackSynthesizer object is used for multiple stacks, only the last one is properly synthesized to the cloud assembly. Ideally, we would have made it so that there is a difference between the specifying `StackSynthesizer` object and a "bound" version of the `StackSynthesizer` (bound to a `Stack`). Unfortunately, we cannot introduce that change without heavy contortions in order not to break backwards compatibility, so the simple thing to do right now is to make it blindingly obvious that "you cannot do that". Fixes #11528. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
In my testcases i saw the behaviour, that only one stack per stack synthesizer is possible. If I create more than one stack per app with the same synthesizer, only the last stack is known to cdk.
Reproduction Steps
Removing the synthesizer from one of the stacks I can see both stacks ...
Further investigations:
The problem is that I'm reusing the same synthesizer for several stacks. Using different objects (with the same content) as stack synthesizers works like expected. So I'm not sure if this is a bug?
What did you expect to happen?
I expected to see all Stacks ...
What actually happened?
I only see the last stack defined per Synthesizer
Environment
cdk 1.73.0
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: