https://pulumi.com logo
Title
l

little-river-49422

03/14/2019, 10:07 AM
apply function?
a

alert-monitor-28534

03/14/2019, 11:01 AM
I tried to use apply but I don't understand how it is supposed to be used. https://pulumi.io/tour/programs-properties.html the print produces the output object at some address.
I'm actually trying to write hosts.ini file for Ansible based on the output of Pulumi operations.
this is how I'm doing that
w

white-balloon-205

03/14/2019, 4:38 PM
In general - see https://pulumi.io/reference/programming-model.html#outputs for details on how `Output`s work in Pulumi.
a

alert-monitor-28534

03/15/2019, 6:22 AM
Thanks, I'll check these if/when I have time for it. Meanwhile I created separate Python script to parse the output of
pulumi stack output
to
hosts.ini
file.