limited-telephone-38538
08/18/2023, 8:24 PMconst infrastructureStack = new pulumi.StackReference("organization/infrastructure/dev");
const mainVMIPAddress = (await infrastructureStack.getOutputDetails("mainVMIPAddress")).value as string;
green-stone-37839
08/18/2023, 8:27 PMStackReference
outside the context of a Pulumi project.
Two options would be to use the Pulumi CLI to access the outputs of the desired project using a bash script or you could also use the Automation API. The latter seems possibly a better choice for you as you appear to want to do this in typsecript code.limited-telephone-38538
08/18/2023, 8:36 PMgreen-stone-37839
08/18/2023, 8:47 PM