https://pulumi.com logo
#typescript
Title
# typescript
c

chilly-article-21928

11/03/2019, 11:37 AM
Hi everyone ! I'm encountering an issues with
StackReference.getOutputSync
or
StackReference.requireOutputSync
. In both cases, when I run
pulumi preview
, the program get stuck calling these functions. Is it a known issue ? Here is the snippet:
Copy code
const env = pulumi.getStack();
const network = new pulumi.StackReference(`Shiroy/webhosting-network/${env}`);

const privateSubnetIds = <string[]>(
  network.requireOutputSync("privateSubnetIds")
);
console.log(privateSubnetIds);