pulumi / pulumi-command

Apache License 2.0
57 stars 23 forks source link

Consider adding support for `Diff` #433

Open thomas11 opened 1 month ago

thomas11 commented 1 month ago

The Diff operation is defined in the Pulumi resource model.

The Diff method is responsible for calculating the differences between the actual and desired state of a resource as represented by its last recorded state and new input Object as returned from Check or Read and the logical operation necessary to reconcile the two (i.e. no operation, an Update, or a Replace).

Allowing users to define a specific command to run on Diff could open up new use cases. If you have such a case, please comment below!

This issue is a follow-up from #20.

danielrbradley commented 1 month ago

I think this is the same as https://github.com/pulumi/pulumi-command/issues/49 - perhaps we just need a "preview" command which allows the provider to generate the diff.