https://pulumi.com logo
#general
Title
# general
f

full-dress-10026

05/30/2019, 6:54 PM
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

handsome-actor-1155

05/30/2019, 7:05 PM
You could convert the Inputs to Outputs. https://pulumi.io/reference/programming-model/#frominput
w

white-balloon-205

05/30/2019, 7:12 PM
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

full-dress-10026

05/30/2019, 7:13 PM
Oh, sweet!
This doesn't appear to work for something that has a type like this:
pulumi.Input<pulumi.Input<string>[]>
h

handsome-actor-1155

05/30/2019, 8:14 PM
Convert it to an output then perform the
.apply()
method like Luke said