synth: Unresolved condition dependency using CfnCondition from another stack #26560
Labels
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
Using a
CfnCondition
created in another stack causes an unresolved dependency. The condition is defined in the other stack while the stack that is using it does not have "conditions" defined in CloudFormation.Expected Behavior
I would expect the condition to be created in all the stacks that need it. Unless a condition can be an output of a stack that can be consumed by another stack? I'm unsure of the inner workings.
Current Behavior
Current stack B uses the condition
dsdnsconditionemptysubdomainstaging
created in another stack A:while only the other stack A has the condition defined:
Reproduction Steps
Error msg:
Possible Solution
Workaround is to create the CfnCondition in every stack.
Additional Information/Context
No response
CDK CLI Version
2.77.0
Framework Version
No response
Node.js Version
16
OS
osx 14
Language
Java
Language Version
Java 11
Other information
No response
The text was updated successfully, but these errors were encountered: