Hey all, I had created a pulumi stack after local ...
# pulumi-cloud
b
Hey all, I had created a pulumi stack after local login. I want to move this stack to pulumi cloud in my organization. I want to move all configuration and history associated with the stack to pulumi cloud. Is there a way to achieve this without destroying the stack and recreating it in pulumi cloud? I tried doing pulumi export and pulumi import, however after importing, the stacks state seems to be inconsistent with actual resources deployed. When I try to do a pulumi up it shows half the resources need to be created but those resources already exist on my cloud provider.
a
Hi @bored-king-62690 — if you go to your stack’s page >
Settings
>
Transfer stack
, you should be able to do this. It will merely transfer the stacks state to the other organization and should not impact any of your resources
b
It’s a local stack on my machine. I ran pulumi login --local before creating it.
a
My mistake. Can you share a few resource types that are showing diffs and a few which are not?
b
These updates shouldn’t happen. it seems like it’s in a very old state after importing
when I go back to local stack and do a pulumi up this is the result, it should be the same on the imported stack in pulumi cloud no? -
🙏 1
a
Correct. This is definitely odd. One thing to sanity check--are the AWS regions/accounts configured the same in both stack’s configs?
Let me look into this and get back to you. Could you share the name of the target stack on Pulumi Cloud (either here or via DM)?
With respect to transferring stack history from a local stack: unfortunately this is not possible at this time. A stack export > import can be used to transfer a the state of a stack created via
pulumi login --local
to Pulumi Cloud, but there is no way to transfer the stack’s history. Please feel free to open an issue against https://github.com/pulumi/pulumi-cloud-requests though if you’d like!