https://pulumi.com logo
Title
m

most-lighter-95902

03/18/2022, 2:05 AM
I’m actually pretty confused as to how Pulumi Automation API picks the version it requires. Locally I’m using the latest version, but the automation API frequently errors out citing another older version (i.e. aws)?
b

bored-oyster-3147

03/18/2022, 8:48 PM
What language are you using? If you are using a compiled language, are you doing any pre-building and then pointing Pulumi at the binary via project Config?
m

most-lighter-95902

03/20/2022, 9:02 PM
I’m using Typescript - I’m not sure what you mean by “pointing Pulumi at the binary via project Config”. During docker build, I’m installing Pulumi cli via Dockerfile and specifying a version there, but it doesn’t seem to honor that. Also, I’m specifying plugins versions via Automation api’s
stack.workspace.installPlugin(name, version)
but I’m not sure why they require the versions they do (i.e. the version I’m specifying here is simply based on the error Pulumi throws when I run automation api)
b

bored-oyster-3147

03/21/2022, 12:13 AM
Yea the binary in Config is related to pre-built Pulumi projects for golang or dotnet so disregard that. In those languages plug-in discovery happens at build time so if you are pre-building than you lose plug-in discovery. So running it without Automation API inside your container doesn't give you the same errors?
m

most-lighter-95902

03/21/2022, 9:17 PM
I’m not sure - I’ve only tried doing it via Automation API. I was just pointing out that the versions that are installed in my package.json seems to have no bearing on what’s required when I run Automation API. Is there a way to specify the versions for Pulumi and its plugins? For example, in my Dockerfile, this just installs the latest version:
RUN curl -fsSL <https://get.pulumi.com/> | sh;
Also, I’m not sure what plugin versions I’m supposed to specify for what version of Pulumi?
b

bored-oyster-3147

03/21/2022, 10:00 PM
I'd have to dig in to the source and see how/if plug-in discovery differs in typescript. Or maybe someone from the Pulumi team could chime in. Sorry I can't be of more immediate help
m

most-lighter-95902

03/22/2022, 4:29 AM
Hey no worries - thanks for chiming in!