bumpy-bear-61087
02/21/2024, 9:26 AMpulumi up
but just go run
. Is this not supported?
<http://logger.Info|logger.Info>("running pulumi")
pulumi.Run(func(ctx *pulumi.Context) error {
if err := <http://ctx.Log.Info|ctx.Log.Info>("Pulumi run", nil); err != nil {
logger.Error(err)
}
logger.Debug("initializing gcp")
infra, err := gcp.New(ctx, conf.GCP)
if err != nil {
logger.WithError(err).Fatal("failed to initialize GCP")
}
logger.Debug("creating infra")
if err = infra.Create(ctx); err != nil {
logger.WithError(err).Fatal("failed to create GCP infra")
}
return nil
})
}
ancient-policeman-24615
02/21/2024, 11:22 AMpulumi
CLI is possible, but slightly different. You will need to use Pulumi’s Automation API.bumpy-bear-61087
02/21/2024, 1:11 PMsalmon-account-74572
02/21/2024, 3:04 PMpulumi
CLI to perform all operations.bumpy-bear-61087
02/21/2024, 3:05 PMpulumi cli
, but I find it more comfortable with a custom config struct loaded from one single yaml config file so maybe i'll try that. Thanks!