pulumi/pkg/resource/stack
Thomas Gummerer 24ce87b566
implement skeleton command for `pulumi state move` (#16493)
Implement a skeleton command for `pulumi state move`. This can so far
only more a single resource from one stack to another, including copying
the provider it needs, and leave valid state files behind.

These state files are not written to the backend yet, nor is there any
kind of UI. Further PRs will build on top of this.

The command is intentionally commented out so this can be merged
independently.

---

Based on discussions in the last retro, I'm trying something new here
and try to split the PR up some more into chunks that can be
individually merged, but are not completely ready yet. The code added
here is essentially dead code at this point, but provides a skeleton to
incrementally add pieces.

To give an idea of where this is headed, the next things I'm planning to
work on here are:
- Writing the state files to the backend
- Make sure this works with stacks from two different projects
- Add a preview phase that asks for user confirmation
- Add output for moved resources and warnings for dependencies that are
being broken
- Implement `--include-parents` flag
- Implement convenience flags (`--yes`, `--skip-preview` etc.)

I'd love some early thoughts on this PR, and also meta thoughts on
splitting PRs up this way.
2024-06-28 09:43:19 +00:00
..
testdata [secrets] Fix + refactor bulk decryption. (#9039) 2022-02-25 08:51:52 -08:00
checkpoint.go implement skeleton command for `pulumi state move` (#16493) 2024-06-28 09:43:19 +00:00
checkpoint_test.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
deployment.go Change `pulumi refresh` to report diff relative to desired state instead of relative to only output changes (#16146) 2024-06-12 16:17:05 +00:00
deployment_test.go Change `pulumi refresh` to report diff relative to desired state instead of relative to only output changes (#16146) 2024-06-12 16:17:05 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
plan.go Lift context parameter to SerializeDeployment/Resource/Operations/Properties (#15929) 2024-04-15 07:45:46 +00:00
secrets.go Add `context.Context` to `cachingCrypter.encryptSecret` (#15765) 2024-03-25 10:27:47 +00:00
secrets_test.go Lift context parameter to SerializeDeployment/Resource/Operations/Properties (#15929) 2024-04-15 07:45:46 +00:00