hi all i was working with pulumi on a branch and i...
# general
w
hi all i was working with pulumi on a branch and i merged this branch on the main then somehow i didn't find the stacks i was working with all the resources are deployed on gcp but i can't find anything on pulumi even i have the pulumi.stack.yaml files i faced this problem when i took the project but i didn't find a solution and i had to make another stack and deploy new version is there any solution to had the old stack with the same deployed resources or what should i do plz anyone can help me ?
m
Not sure to understand your problem. Can you explain a bit: • You don't find the stack you were working with, where? On Pulumi Cloud ? You only see the new stack you have created? • You say you have the Pulumi.stack.yaml files locally, that means you have the configuration file corresponding to you old stack? • Do you see your old stack when doing running the command
pulumi stack ls
? • What do you want to do exactly? Import the resources you deployed with a new stack in your previous stack? Why is that? There are data you want to keep? Or you just want the same exact resources? Is there a problem to have them deleted and recreated? Have you checked the
import
command?
h
From my somewhat limited experience, if it "doesn't find the stacks" it means that when you merged or took some other action you removed Pulumi.yaml and any Pulumi.STACKNAME.yaml files from the directory. Those files are the starting point from which pulumi knows what stacks exist. The actual data of what was in your stacks is either stored also in a local file or in Pulumi Cloud or another backend you might have configured. I don't use Pulumi Cloud, but if your stacks are there, I'll bet you could piece together replacement .yaml files that would get you working again. Or, find them in your version control