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

gray-application-13726

03/05/2024, 9:49 PM
Hi, I am new to pulumi and I am trying to write a wrapper on go on top of pulumi. I have 2 solutions for it: 1- generating some go files first (templating) and then run pulumi commands exec on those generated go files 2- somehow run the
pulumi.Run(func(ctx *pulumi.Context) error {}))
without
pulumi up
command and by some go sdk. I prefer the second solution, but I won't do templating. I don't know if it is possible to do so. Does anyone have an idea on it? Thanks!
e

echoing-dinner-19531

03/06/2024, 8:35 AM
Have you looked into the automation api library? https://www.pulumi.com/docs/using-pulumi/automation-api/
g

gray-application-13726

03/06/2024, 9:02 AM
Thanks! This is the exact thing I was looking for.