is there something like pulumi.interpolate for dea...
# general
is there something like pulumi.interpolate for dealing with files, or should i load into a string and do something else? ive got a configuration file that i want to add some Output’s to
I’m also looking forward to know the options that people are using. I’ve seen this exact scenario happening (load into a string)
There’s also a newer article dealing with this problem with Dynamic Providers, maybe one of this options could be used for your specific use-case:
Yeah - the great thing about having real code is that you can use whatever templating and file system libraries you want on the language you are using. So you can open a file and use mustache templates if you want, or any other form of templating. The only Pulumi specific thing to keep in mind is that you’ll want to instantiate and return the template from inside an
(where you can get ahold of the output values).
Indeed @white-balloon-205. Just in case someone needs a pointer, Here’s how I did it for a Linux VM creation in Typescript: Look at the