https://pulumi.com logo
#golang
Title
# golang
a

astonishing-spoon-27005

12/04/2019, 5:19 PM
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

broad-dog-22463

12/04/2019, 5:54 PM
Look at something like FileAsset
(finding an example)
like this - it should also work (different namespacing of course)
a

astonishing-spoon-27005

12/04/2019, 9:48 PM
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

white-balloon-205

12/04/2019, 10:24 PM
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

astonishing-spoon-27005

12/04/2019, 11:18 PM
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
8 Views