millions-train-91139
08/01/2024, 11:39 AMpulumi refresh
with a plan
?
I want to show a nice textual preview of what pulumi refresh
would do in some GHA workflow , and then apply it after an approval from a different person.
From engineering perspective, previewing a refresh
and then applying it to the state should be even easier than previewing a pulumi update
because it just involves updating the state file - but to my amazement there is no normal way to do it.
I tried fiddling with json
output for pulumi refresh
but I am not sure what this feature is good for:
1. It neither gives a nice textual diff / summary of what changed - so I have to parse it additionally to display it
2. It does not output the updated stack state which can be them simply manually uploaded using stack import
.
Would love to get some assistance on this.
(P.S. pulumi refresh --json
gives weird outputs - I don’t see deletions, and it shows same resources as updates, trying to fix that here: https://github.com/pulumi/pulumi/pull/16851)