pulumi/pkg/backend
Thomas Gummerer e743503d37
state move: show full set of delete commands when writing source stack fails (#17205)
Before actually writing the source stack, we have no way of knowing we
can write it. The same is true for writing the destination stack. This
means if the one we write later fails to write, we get an incompletely
moved state.

We've decided to move the destination stack first, and then the source
stack, so resources are always tracked. The error message also mentions
cleaning up the source stack, however it's not completely obvious how to
do that. Since we know the resources that were supposed to be moved (and
successfully been written to the destination stack at this point), we
can give the user better instructions on how to clean up the resources.

Do that by giving them a full set of `pulumi state delete` commands they
can run to clean up the source stack.

Fixes https://github.com/pulumi/pulumi/issues/17187
2024-09-09 16:33:07 +00:00
..
display Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
diy state move: show full set of delete commands when writing source stack fails (#17205) 2024-09-09 16:33:07 +00:00
filestate Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
httpstate Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
state [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
apply.go Fix rendering of output events in rendering update diffs (#17029) 2024-08-27 18:37:03 +00:00
apply_test.go Make `engine.NewEvent` type safe (#14590) 2023-11-16 16:54:03 +00:00
backend.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
backend_test.go Allow anything in resource names (#14107) 2023-11-20 08:59:00 +00:00
cancellation_scope.go Make `engine.NewEvent` type safe (#14590) 2023-11-16 16:54:03 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
errors.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
inmemoryPersister.go Revert "Revert "Run integration tests and dev builds with race detection" (#15998)" (#16148) 2024-05-09 16:15:41 +00:00
mock.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
policypack.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
query.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
snapshot.go [snapshot] Elide writes for RRO with no changes (#15976) 2024-04-18 22:09:08 +00:00
snapshot_test.go Remove `Step.Apply`'s `preview` parameter (#16367) 2024-06-14 10:19:13 +00:00
stack.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
updates.go [cli] Include config from ESC in `pulumi config` (#14560) 2023-11-21 10:44:45 +00:00
watch.go Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00