faint-restaurant-96457
07/30/2024, 5:14 PMbig-architect-71258
07/31/2024, 9:12 AM--json
parameter to calls for pulumi up
and pulumi preview
faint-restaurant-96457
07/31/2024, 1:03 PMbig-architect-71258
07/31/2024, 1:09 PMProgressStreams
to write the progress message of e.g. pulumi up
to a file or other streams. Issue is that ProgressStreams
does not allow to specify any manipulation of in the incoming data, you can only pass an arbitrary list of IO streams.faint-restaurant-96457
07/31/2024, 1:22 PMbig-architect-71258
07/31/2024, 1:23 PMbig-architect-71258
07/31/2024, 1:25 PMI’m just looking for a simple embedded go library that lets me deploy a dtack and watch (and report) that stack to the user as it deploysIf you really want to provider the user a "standalone program" or an "embedded go library" you've to use the Automation API because everything else would require to run the
pulumi
program via GOfaint-restaurant-96457
07/31/2024, 1:28 PMfaint-restaurant-96457
07/31/2024, 1:29 PMfaint-restaurant-96457
07/31/2024, 1:30 PMstream := optup.ProgressStreams(os.Stdout)
if _, err := stack.Up(ctx, stream); err != nil {
// my processing for progress stream goes here
}
big-architect-71258
07/31/2024, 1:40 PMfaint-restaurant-96457
07/31/2024, 1:44 PMbig-architect-71258
07/31/2024, 1:51 PMfaint-restaurant-96457
07/31/2024, 1:55 PMfaint-restaurant-96457
07/31/2024, 1:56 PMfuture-hairdresser-70637
07/31/2024, 2:03 PM“need the pulumi cli installed” but I’m not sure whybecause the automation api makes use of the
pulumi
cmdline app via os.exec
big-architect-71258
07/31/2024, 2:05 PMfaint-restaurant-96457
07/31/2024, 2:05 PMfuture-hairdresser-70637
07/31/2024, 2:07 PMbig-architect-71258
07/31/2024, 2:09 PMPackage auto contains the Pulumi Automation API, the programmatic interface for driving Pulumi programs without the CLI. Generally this can be thought of as encapsulating the functionality of the CLI (pulumi up, pulumi preview, pulumi destroy, pulumi stack init, etc.) but with more flexibility. This still requires a CLI binary to be installed and available on your $PATH.
https://github.com/pulumi/pulumi/blob/master/sdk/go/auto/README.mdfaint-restaurant-96457
07/31/2024, 2:14 PMfuture-hairdresser-70637
07/31/2024, 2:15 PMfaint-restaurant-96457
07/31/2024, 2:15 PMfuture-hairdresser-70637
07/31/2024, 2:15 PMfaint-restaurant-96457
07/31/2024, 2:15 PMfuture-hairdresser-70637
07/31/2024, 2:16 PMfaint-restaurant-96457
07/31/2024, 2:18 PMfuture-hairdresser-70637
07/31/2024, 2:33 PMfaint-restaurant-96457
07/31/2024, 2:35 PMfuture-hairdresser-70637
07/31/2024, 2:43 PMfaint-restaurant-96457
07/31/2024, 2:58 PM