This message was deleted.
# general
s
This message was deleted.
c
@white-balloon-205 We are blocked on this.
Any help would be appreciated.
w
I have a stack deployed with a stack output
x
whose value is:
Copy code
{
  "active": true,
  "nums": [
    1,
    2,
    3
  ]
}
The following program:
Copy code
const s = new pulumi.StackReference("other", {
    name: "bucketlistobjects",
});
const o = s.getOutput("x");
o.apply(x => console.log(x.nums[1]));
Prints
2
as expected.
In your case, I'm not clear on where you are getting the
error: TypeError: subnetIds is not iterable
error. Which line of code is reporting that?
i
Thanks @white-balloon-205 turns out the issue was on my side - I forgot to change the name of the stack I was referencing. The example of using a
console.log
inside an
apply
really helped me debug it 👍
c
@white-balloon-205 Thank you!