will pulumi compile my go binary for me, and zip a...
# golang
a
will pulumi compile my go binary for me, and zip and send it to lambda? or do i need to somehow do that myself?
b
Look at something like FileAsset
(finding an example)
like this - it should also work (different namespacing of course)
a
hmm, ok. but i thought golang programs had to be compiled before sending to lambda. that just looks like it archives the source directory.
it’s the compilation step i was hoping might be automated.
w
There’s nothing built in that would compile you go app code - but you could shell out to
go build
inside an
Apply
in your deployment program to produce the binary you want to upload to Lambda (I don’t recall exact details of what you need in the Zip for lambda for Go - but something like the above should work).
a
it’s just a zipped binary as far as i can tell, but you’re right, it’s easy enough to shell out to do that.
hmm, i don’t see a
pulumi.asset
module in go anywhere