few-toddler-19603
06/30/2022, 7:44 PMerror: Duplicate resource URN 'urn:pulumi:masterapi::masterapi::pulumi:pulumi:Stack::masterapi-masterapi'; try giving it a unique name
which, after hours of troubleshooting, I realised was NOT a duplicate resource I made in equinix (my provider) but something in pulumi trying to make a second stack
so I ask, why is pulumi trying to make the stack? and how can I tell it not tobillowy-army-68599
06/30/2022, 8:19 PMfew-toddler-19603
07/01/2022, 8:46 PMbillowy-army-68599
07/01/2022, 9:05 PM// This is horrible, why does pulumi require their own types
dbout := db.Create(&nodeInfo)
if dbout.Error != nil {
log.Errorln("Error inserting node info into DB: ", err)
return err
}
few-toddler-19603
07/02/2022, 3:41 PMbillowy-army-68599
07/02/2022, 4:02 PMfew-toddler-19603
07/02/2022, 4:10 PMbillowy-army-68599
07/02/2022, 4:28 PMbored-oyster-3147
07/02/2022, 4:29 PMfew-toddler-19603
07/02/2022, 4:46 PMbored-oyster-3147
07/02/2022, 4:51 PMI should modify my API to allow multiple nodes to be requested at onceI'm not sure what you mean by this
Everytime I run pulumi I need to make a new stackNot necessarily, only if your HTTP action is only doing green deployments. If you are updating existing infrastructure than you will need to fetch an existing stack. But yes, you will need to manage your stacks somehow if the intention is to have multiple deployments.
The Automation API is a requirementYes if you want to invoke the pulumi engine programmatically instead of via the CLI that is what the Automation API is for.
few-toddler-19603
07/02/2022, 4:51 PMI should modify my API to allow multiple nodes to be requested at onceAs I have now, the code I have written creates one machine for every HTTP request made, and the intention was to just make multiple requests if you need multiple servers, but it seems that now I should not do that and instead allow for each request (for now just assuming I'll only be creating nodes) to spin up multiple machines
bored-oyster-3147
07/02/2022, 4:55 PM