Channels
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
general
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#python
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.
l
little-river-49422
03/14/2019, 2:08 PM
https://pulumi-community.slack.com/archives/CDE799L1M/p1550745431005400
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.
Post