If I'm using the Pulumi YAML provider, how would I extract an output to file? With any "full-fat" language, I would just use the language built-in for this but I'm not quite sure how (or if) this is possible with Pulumi YAML
b
billowy-army-68599
07/06/2023, 2:54 PM
@some-carpenter-61778 you can’t directly from the language no. You can always specify outputs and do
pulumi stack output foo > foo.txt
e
echoing-dinner-19531
07/06/2023, 4:52 PM
We have a bridged version of Terraforms "local" provider which can write out files.
https://github.com/pulumi/pulumi-local
You could add a "localindex/fileFile" to your yaml and set its "content" to the output your interested in, that should then write out the file on each update.