https://pulumi.com logo
Title
c

crooked-wolf-21506

07/01/2021, 2:54 PM
anyone have good examples of setting up micro-stacks with typed exports in pulumi? I’m trying to avoid having errors with a large number of
stack = new plulumi.StackReference(...);
const resource1 = {
  arn: stack.getOutput("resource1Arn"),
  name: stack.getOutpu("resource1Name"),
  ...
}
...
it looks like
pulumi.Config
can use json structures with types or requireObject, but
stack.getOutput
is an any. Can I pass objects and arrays as stack exports and
stack.getOuput('resource1') as ResourceExport
?