You’re on the right track with Output.apply — you ...
# python
f
You’re on the right track with Output.apply — you can pass a function to the apply to write to the file. One thing to be aware of is https://github.com/pulumi/pulumi/issues/3991 — so you’ll probably want to export whatever it is you’re writing to the file so that the program properly waits for the resource.