Does pulumi have the concept of a plugin that coul...
# general
b
Does pulumi have the concept of a plugin that could be ran as say a pre-step to pulumi up? I know plugins/resource providers are there from that perspective, but it would be nice to consolidate some canned capabilities inside a plugin vs performing builds/dependency installs outside pulumi in bash for instance
w
Not currently. But the Automation API which essentially encapsulates the Pulumi CLI in an SDK allows you to orchestrate things as such using Python/TypeScript/Go/.NET instead of bash. See: https://www.pulumi.com/docs/guides/automation-api/
b
ill have to dig into this thx @witty-candle-66007
p
this might also be of interest: https://github.com/brandonkal/pulumi-command
b
I mean it would work but this stuff isnt part of my stack
for instance to send a python lambda as a zip up to aws, you need to bundle pip packages that are installed inside a docker container due to local machine platform differences (macos vs amazon linux).
I have a bash script that literally just spins up a docker container with a volume mount to spit out the python zip to send to the cloud with the pulumi typescript code.
It would be nice to make this part of the pulumi process without it being a resource that affects state..its a glorified make file if that makes sense
n
why can’t you just write this in normal Python/Java/Go? sitting side-by-side with your pulumi code
invoked inside the pulumi.run function
a
Since you have a bash script that does the job of packaging and sending to aws, I assume you can add another bash script that's going to invoke the first script and only if it's successful it will execute
pulumi up
?
b
Sure....I just wanted everything under the pulumi umbrella...one command deploy...might be wishful thinking