Hi, Is there a way to make stack references type-...
# general
b
Hi, Is there a way to make stack references type-safe? Say I have variable
key
defined in stack A, and I want to use it in stack B. I can use pulumi.StackReference(“B”) and then key = stack.get_output(‘…’), but none of this is type safe (i.e. what happens if the output name changes, etc.). Is there a way to have stronger guarantees?
1
s
I second your question! However, I think type safety will be difficult to achieve, given that Pulumi is programming language-agnostic, so you will likely always lose some type information.