You don’t need terraform outputs, at least no manual ones in this case (cdktf adds them for you). You need to pass the value you create in one stack into the configuration of a second stack. So e.g. use a public attribute on your one class and use that attribute in the constructor of your other class (and then in the configuration).
Ahhhh I see. Thank you for the help. And some of these values aren’t going to be created until the first stack is created. Do I need to worry about passing null values around?
So I think I’m close. One follow up question on this: a value I am passing from one stack is null until it is deployed. To add it to the variable map, I used
secondStackVars.put("id", firstStackOutput.id);
But when I try to create the secondStack, I get an error saying that variable id is required. How can I delay the value of this variable to stack creation?