If I have an Object with a bunch of keys whose val...
# general
f
If I have an Object with a bunch of keys whose values are `pulumi.Input`s, is there an easy way to wait for all of the `Input`s to become available without need to individually pull each one off the object and pass it to
pulumi.all
?
h
You could convert the Inputs to Outputs. https://pulumi.io/reference/programming-model/#frominput
w
You can also do
pulumi.output(obj).apply(o => ...)
which will deeply resolve any values which are
Outputs
inside
obj
and hand back a fully resolved object.
f
Oh, sweet!
This doesn't appear to work for something that has a type like this:
pulumi.Input<pulumi.Input<string>[]>
h
Convert it to an output then perform the
.apply()
method like Luke said