We have a bridged version of Terraforms "local" provider which can write out files.
https://github.com/pulumi/pulumi-local
You could add a "local
index/fileFile" to your yaml and set its "content" to the output your interested in, that should then write out the file on each update.