https://pulumi.com logo
#general
Title
# general
b

bland-addition-41161

07/09/2018, 8:01 PM
hi! loving pulumi so far, really coo tool! if i’m using Go, can i run pulumi completely contained within my app? so the binary i create for my app can be self deploying?
s

stocky-spoon-28903

07/09/2018, 8:37 PM
This would be extremely compelling for SAAS “private” installers
b

bland-addition-41161

07/09/2018, 8:45 PM
yea, i have an application framework for Go and Amazon services; primarily Lambda and API Gateway. but its not geared for infrastructure management. not really what i want to focus on. so pulumi may work nicely
either maybe just a pulumi package. or if i can just use pulumi inside the code then i can maybe get the thing to self deploy, potentially self update too
license verification, etc. thats my ultimate goal anyway
of course the go binary can be packed with all sorts of assets. so you can deploy the frontend spa on cloudfront too
m

microscopic-florist-22719

07/09/2018, 9:18 PM
While it's possible to embed the engine, we don't really have first-class support for doing so. The
backend
package, for example, assumes that it can write directly to
stdout
and
stderr
, and doesn't really give the embedder any affordances to redirect that output.
b

big-piano-35669

07/10/2018, 1:46 AM
That said, this was certainly the intent, that the Go engine will evolve over time to support embedding like this. (Given that all the APIs are public -- including ways to hook and redirect output streams -- I strongly suspect someone sufficiently motivated could make this work.) I saw @white-balloon-205 filed an uber issue to track various Go runtime issues, @microscopic-florist-22719 should we track this there ("hostability")? Or is it large enough that it warrants a new issue?
m

microscopic-florist-22719

07/10/2018, 1:46 AM
I think this warrants its own issue.
b

big-piano-35669

07/10/2018, 1:47 AM
Great, would you mind filing, and capturing the challenges that occur to you top-of-mind? Probably worth linking to Luke's issue as we look at Go all-up in the weeks to come.
cc @creamy-potato-29402 since I believe this is what the guys we spoke to a few weeks back wanted to do also.