You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make some sense out of the assertions.Template behavior I'm observing. What I'm trying to do is to build a headless Java application that is supposed to render a stack YAML template, do some modifications to the stack and then re-render it again. The second YAML render turns out to be completely identical to the first one, even though the changes seems to be applied to the stack successfully.
I'm using Java lib software.amazon.awscdk.aws-cdk-lib of version 2.65.0.
The Kernel seems to be returning identical JSONs for an alternated stack if it was already traversed and resolved before the modification.
Hence my question: is the expectation to get 2 distinct renders fair? If so, is there a way to instruct the Kernel to flush whatever has been resolved for this stack and return a new render?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey all,
I'm trying to make some sense out of the
assertions.Template
behavior I'm observing. What I'm trying to do is to build a headless Java application that is supposed to render a stack YAML template, do some modifications to the stack and then re-render it again. The second YAML render turns out to be completely identical to the first one, even though the changes seems to be applied to the stack successfully.I'm using Java lib
software.amazon.awscdk.aws-cdk-lib
of version2.65.0
.Here is a sample of the app I'm running:
This program would output 2 identical YAML renders:
My expectation is that the second render should contain
version: 2
. I narrowed it down to the invocation of Kernel in Template.java class:The Kernel seems to be returning identical JSONs for an alternated stack if it was already traversed and resolved before the modification.
Hence my question: is the expectation to get 2 distinct renders fair? If so, is there a way to instruct the Kernel to flush whatever has been resolved for this stack and return a new render?
Beta Was this translation helpful? Give feedback.
All reactions