Remove Pending Operations From Pulumi State
|Apr 12, 2022||The Pulumi Verdict So Far|
|Mar 24, 2022||Using Randomization for Pulumi Kubernetes Resources|
|Mar 24, 2022||Remove Pending Operations From Pulumi State|
|Mar 11, 2022||Pulumi Secrets|
|Jan 28, 2022||Pulumi Round 2|
|Aug 10, 2021||First Pass With Pulumi|
If you need to work through some issues with a deployment and remove a pending operation in Pulumi state file, you can do this pretty easily manually, or save a quick bit of scrolling and use
jq if you want).
pulumi stack export --file state.json
- Align formatting:
cat state.json | gojq > stateFormatted.json
- Remove pending operation:
cat stateFormatted.json | gojq '.deployment.pending_operations = ' > stateNew.json
- Now you can compare the results without any whitespace variance.
pulumi stack import --file stateNew.json