Hey, using automation api, is it possible to bake ...
# general
g
Hey, using automation api, is it possible to bake plugins into the binary so I don't have to install the plugin during the request?
e
Not really, plugins are expected to run as separate processes and might not even be written in the same language your using for automation api. What you could do is ship the plugin binaries with your app. The engine will use plugins binaries on the path before looking in the plugins directory.
g
Thank you, do you have an idea of a sensible way to include the binaries with my app. Is it something like pulumi install?
e
Download the binaries you want with
pulumi plugin install
and then copy the binaries for them from ~/.pulumi/plugins, and copy them with your application binary. Exactly how that looks depends on how your distributing your app.
g
Ahhh, I wasn't aware that pulumi always looks ~/.pulumi/plugins. out of curiosity is there anyway to modify where pulumi looks?
e
The environment variable PULUMI_HOME will change it, but it will affect other setting files as well.