chilly-hairdresser-56259
07/14/2020, 3:05 PMtall-librarian-49374
07/15/2020, 9:23 AMobject
in the types of stack outputs. So, you have to declare the subnets output as strings:
[Output("private_subnets")]
public Output<ImmutableArray<string>> PrivateSubnets { get; set; }
At the same time, you get an array of objects when you retrieve outputs from another stack, so you’d have to cast one to the other:
this.PrivateSubnets =
vpcStack
.RequireOutput("private_subnets")
.Apply(o =>
((ImmutableArray<object>)o)
.Select(o => (string)o)
.ToImmutableArray());
chilly-hairdresser-56259
07/15/2020, 3:08 PM