I've exported a value from one stack. How do I imp...
# general
e
I've exported a value from one stack. How do I import that value into a separate project?
m
e
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
It is in 0.16.7 or greater.
It also requires a 0.16.7 or greater version of the Pulumi CLI
e
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