pulumi/pkg/backend/diy
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
..
backend.go state move: show full set of delete commands when writing source stack fails (#17205) 2024-09-09 16:33:07 +00:00
backend_legacy_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
backend_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
bucket.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
bucket_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
doc.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
lock.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
meta.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
meta_test.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
pool.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
pool_test.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
snapshot.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
stack.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
state.go Improve snapshot integrity panics depending on operation (#17144) 2024-09-04 21:22:18 +00:00
store.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
store_test.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00