https://pulumi.com logo
#automation-api
Title
# automation-api
m

microscopic-xylophone-85966

11/12/2020, 2:21 PM
funny, I just realized that the whole API is a wrapper around pulumi cli tool:
cmd := exec.CommandContext(ctx, “pulumi”, args...)
any plans to bring real programmatic api with no dependencies?
l

lemon-agent-27707

11/12/2020, 4:34 PM
I just realized that the whole API is a wrapper around pulumi cli tool
This is not entirely accurate. There are portions that have been integrated with the pulumi engine's RPC interface as described here: https://github.com/pulumi/pulumi/issues/5403#issuecomment-695797737 Wrapping CLI commands was a starting point to get off the ground. Eventually everything will call into a clearly defined RPC interface from the engine, but this will still require some sort of pulumi binary to be on the path (it would be unfeasible to rewrite the engine in every language). For Go specifically, I would not be surprised if we support directly linking into the engine to enable single binary at some point. But definitely not for other languages.
👍 1