https://pulumi.com logo
e

early-musician-41645

12/10/2018, 9:50 PM
I've exported a value from one stack. How do I import that value into a separate project?
m

microscopic-florist-22719

12/10/2018, 9:51 PM
e

early-musician-41645

12/10/2018, 9:51 PM
perfect 👍
Copy code
let iamStack = new pulumi.StackReference(config.require("aws-iam-stack"));
Copy code
index.ts(19,27): error TS2339: Property 'StackReference' does not exist on type 'typeof import("/home/tsi/eshamay/git/mustang/sdp-mustang-terraform/pulumi/eks-cluster/node_modules/@pulumi/pulumi/index")'.
Is it in a newer package?
m

microscopic-florist-22719

12/10/2018, 10:08 PM
It is in 0.16.7 or greater.
It also requires a 0.16.7 or greater version of the Pulumi CLI
e

early-musician-41645

12/10/2018, 11:45 PM
Copy code
$ pulumi version
v0.16.7
version looks right
Is there sample code for this? I'm not able to get things working. Finally got past the version mismatch, but new error is unhelpful for figuring out how to access the outputs from another stack