sparse-intern-71089
07/31/2023, 7:32 PMfull-eve-52536
07/31/2023, 7:52 PMtriggers
parameter? You can set it to something like timestamp.toString()
so that it triggers and update
on each run. I.E.full-eve-52536
07/31/2023, 7:53 PMconst myCommand = new command.local.Command("my-command", {
create: "echo 'Hello, Pulumi!'",
// Use the timestamp as the working directory
// This effectively forces the Command to run on every `pulumi up` since
// the `triggers` argument will be different every time
triggers: [timestamp.toString()],
});
quick-grass-21027
07/31/2023, 8:37 PMfull-eve-52536
07/31/2023, 8:40 PMThat's going to effectively "recreate" that command every time?Yes, I believe so. I suppose
update
can be useful for things like when changing the command being run (for example, adding an environment variable?)quick-grass-21027
07/31/2023, 8:43 PMancient-car-89914
08/01/2023, 5:37 AMancient-car-89914
08/01/2023, 5:39 AMquick-grass-21027
08/01/2023, 2:02 PMstocky-restaurant-98004
08/01/2023, 5:55 PM