Hi Team, I am new to Pulumi, I am wondering if the...
# getting-started
r
Hi Team, I am new to Pulumi, I am wondering if there's a way to do "pulumi up" programatically using java or python code instead of using the cli? Really appreciate if someone can share some guidance to do so.
h
You can explore the automation api.
r
@hallowed-horse-57635 thanks a million! It seems there's no java implementation?
f
not yet. https://github.com/pulumi/pulumi-java/issues/965 please 👍 if you want it!
r
sure, will do
@hallowed-horse-57635 @future-hairdresser-70637, thanks both! I am wondering is there a workaround for this, do we have a way of using cli to launch the monitor and engine rpc servers to connect to a pulumi backend? can we do that in go or python to start the rpc servers? really appreciate if someone could point me to some code to look at.
f
since you mentioned python, the Automation API fully supports your original question; here's a few example py projects: https://www.pulumi.com/docs/reference/pkg/python/pulumi/#module-pulumi.automation dev docs for automation api: https://www.pulumi.com/docs/reference/pkg/python/pulumi/#module-pulumi.automation docs: https://www.pulumi.com/docs/iac/packages-and-automation/automation-api/
r
@future-hairdresser-70637, thanks!! My code is written in java, do you know how the monitor and engine server are started? is there a block of code just for doing that?
f
that is a great question and i'm not sure offhand. Have you seen the architecture docs? https://pulumi-developer-docs.readthedocs.io/latest/docs/architecture/README.html - you'll find pointers to items such as the
ResourceMonitor
that can help you delve into the codebase
r
@future-hairdresser-70637, thanks a lot!
h
We actually built a java/tomcat based layer that interacts with a pulumi automation api container. it's a commercial tool and the Java and the front end are properiteray components but it's fairly easy. Qmcloud.io is the platform. If you are interested we can give some high level guidance.
r
@hallowed-horse-57635, thanks for the info!