Add guide for moving resources between stacks - #20519
Conversation
Adds a dedicated operations guide for the pulumi state move command, covering identifying resource URNs, moving resources with and without dependencies, updating program code on both stacks, and the relationship to the aliases resource option. Cross-links the new page from the stack-management index, the refactoring-with-aliases guide's existing mention of state move, and the organizing-projects-stacks guide's micro-stacks section. Fixes #20267
Pre-merge Review — Last updated 2026-07-25T03:52:29ZTip Summary: This PR adds a new docs page, "Moving resources between stacks," under Review confidence:
Investigation log
🔍 Verification trail42 claims extracted · 39 verified · 2 unverifiable · 1 contradicted
🚨 Outstanding in this PRNo outstanding issues in this PR.
|
|
Your site preview for commit 0c4c1f4 is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-20519-0c4c1f40.s3-website.us-west-2.amazonaws.com Changed pages: |
Drop the vague 'several' quantifier from the intro paragraph and rename the closing section to 'Learn more' per STYLE-GUIDE.md's cross-reference heading convention.
|
Fixed both style findings from the pre-merge review in 0c4c1f4: dropped the 'several' weasel word from the intro paragraph, and renamed the closing section from "Related pages" to "Learn more" per STYLE-GUIDE.md's cross-reference heading convention. No other outstanding issues from the review. |
What
There was no dedicated docs page for moving resources between stacks with
pulumi state move, even though the command has its own CLI reference page, a blog post, and a tutorial. Readers landing on the CLI reference forpulumi state movehad no conceptual guide explaining when to use it, how dependencies are handled, or how to update program code afterward.This PR adds
content/docs/iac/operations/stack-management/moving-resources-between-stacks.md, alongside the other stack-management operations guides (refactoring-with-aliases.md,drift.md,targeted-updates.md, and so on). It covers:state moveversus other approaches (aliases,pulumi import).state moveonly rewrites state, not code.aliasesresource option, for readers who land on this page first.I also cross-linked the new page from three related places: the stack-management index, the existing "Moving resources between stacks" callout in
refactoring-with-aliases.md(which already explained the command but had nowhere to send readers for the full walkthrough), and the micro-stacks section of the organizing-projects-stacks guide, where readers are actively deciding whether to split a stack and need to know the split doesn't require destroying resources.Closes #20267.
Why
The requester noted a blog post and tutorial exist but aren't referenced from the docs proper, other than the bare CLI command page. A CLI reference documents flags, not workflow — readers need a guide that explains the mechanics (URNs, dependency handling, program code updates) in the context of the broader stack-management operations they're already reading about.
How
refactoring-with-aliases.md's existing description ofstate moveto ensure the two pages agree on how URNs and aliases interact, and cross-linked bidirectionally rather than duplicating that explanation.content/docs/iac/operations/stack-management/(weight placed betweenusing-a-diy-backend.mdat 40 andrefactoring-with-aliases.mdat 50).pulumi_state_move.md,refactoring-with-aliases.md, the URN/aliases concept pages) exist at the paths referenced.Validation
make lint/Hugo build tooling isn't available in this environment).🧠 This PR was created by workprentice, the automation identity behind Pulumi's Docs Groundskeeper agent, running an autonomous scheduled backlog-burndown task. No specific human requester triggered this run — the agent selected this issue from the open docs backlog and fixed it directly.