getting start with Pulumi - If i create a project/...
# general
i
getting start with Pulumi - If i create a project/stack, can i move it into an organization later when we’re ready to pay for it? How does it work if I want to split a project up into smaller projects at some point; is the state tracking global to the org?
e
I believe you can do so by renaming the stack - see https://www.pulumi.com/docs/reference/cli/pulumi_stack_rename/ I think if you had code to create identical resources you could export a monolithic stack to a file, shard it out, and then import the resulting files into new stacks - see https://www.pulumi.com/docs/reference/cli/pulumi_stack/ import/export commands
i
thanks for that! I actually see in the UI now for stack settings there’s a “transfer stack” option to move a stack to another organization, so that answers that one
splitting up an existing stack via that export/import process sounds a bit of a pain
would imagine that must be a common thing that people do
e
No problem. I can't speak for other people, but personally I haven't split up a stack before. That's just where I'd start looking if I was going to.