Testing: fullSynth generated incorrect stack is having incoming cross-stack references #3538
Labels
bug/has-workaround
A bug with a workaround (may not be elegant)
bug
Something isn't working
priority/important-longterm
Medium priority, to be worked on within the following 1-2 business quarters.
testing
Expected Behavior
When stack generated has incoming stack references, I would expect those to be correct even stack is generated with
fullSynth
(to be utilized withtoBeValidTerraform
)Actual Behavior
Error:
Steps to Reproduce
testStack
that uses the value from other stackexpect(fullSynth(testStack)).toBeValidTerraform();
Versions
language: typescript
cdktf-cli: 0.20.3
node: v18.17.1
cdktf: 0.20.3
constructs: 10.3.0
jsii: null
terraform: 1.7.4
arch: x64
os: win32 10.0.19044
Providers
Gist
No response
Possible Solutions
Synth should somehow be able to generate references from the code, as I at least expect fullSynth to be ~same than with CLI synth.
It could allow also multiple stacks to be done on one go, and that way to understand that there are references
Workarounds
Make full synth and check those from file system:
Anything Else?
In tests
fullSynth
currently generates "empty" manifest:And refers to that specific value like:
Compared to normal
synth
, manifest has 2 stacksAnd reference to other stack value looks like:
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: