https://pulumi.com logo
Title
p

plain-crowd-82838

01/24/2023, 1:07 PM
Hello all, If I am using Golang with pulumi, can I create a binary executable for the deployment?
e

echoing-dinner-19531

01/24/2023, 1:10 PM
Yes, see https://www.pulumi.com/docs/reference/pulumi-yaml/#runtime-options Your Pulumi.yaml can point to a binary file to use for go, rather than having pulumi invoking "go build"
p

plain-crowd-82838

01/24/2023, 1:36 PM
Hum. Ok. I want the target build to be a single binary that I can distribute.
e

echoing-dinner-19531

01/24/2023, 1:38 PM
Closest we have to that is using the automation api: https://www.pulumi.com/docs/guides/automation-api/ But it's not quite a single binary, because it still needs the "pulumi" executable available as well. There's an issue tracking that https://github.com/pulumi/pulumi/issues/7219 although given the multi-language nature of automation api it's not clear if we'd ever do this.