Hey, all you smart people. I have what I feel is a common issue I’m trying to work through but I think my brain is broken today 😅
I have an app with 2 stacks (currently): One stack handles setting up a bucket (and some other stuff), another stack handles setting up a state machine and it’s associated lambdas. I’ve been passing some state machine properties to the first stack just by exposing a public variable and passing that to the constructor. I’ve now hit a point where I actually need to access the bucket’s props in the second stack - which causes a circular reference.
My instinct is to define the bucket props outside of the stack and just pass it in to both, but I was wondering if there was a better strategy for this? Was wondering whether this would be a good/bad use case for the stack outputs?