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

quaint-salesclerk-22166

12/12/2022, 11:37 AM
Hey! I am using the inline program way to create resources in a golang cli. I dont know why every time I want to create 2 snowflake databases the following happens: DB number 1 is created, then number 1 is deleted and finally DB number 2 is created...
globalStack, err = auto.UpsertStackInlineSource(globalCtx, stackName, projectName, pulumiFunc)
I am executing this for each DB,
pulumiFunc
contains different data for each DB
and then a
res, err = globalStack.Up(globalCtx, stdoutStreamer)
I am omitting al other provider config stuff
m

many-telephone-49025

12/12/2022, 6:39 PM
But still different stackname and projectname?
q

quaint-salesclerk-22166

12/13/2022, 9:09 AM
Hey. No, they are the same. I had to add N calls to snowflake.NewDatabase inside the pulumiFunc
3 Views