Can anyone point me in the right direction for information on managing projects and stacks hosted in the cloud? I have an Azure Storage Account hosting a storage container called pulumi that I want to hold multiple projects and allow the use of StackReference between projects.
On my first attempt, I ran "pulumi login
azblob://pulumi" I could successfully create a new project (with a stack called dev) which set up .pulumi folder in my cloud storage and life was good. I then tried to create a second project, using the same cloud storage, also with a stack called dev I got a warning that a stack with that name already existed. This seems to be because projects aren't stored in subfolders within .pulumi. I could force differences by including project names in stack names but that would get ugly quickly.
On my next attempt I ran "pulumi login
azblob://pulumi/project1". That initially worked well and I could then create a second project with overlapping stack names by running "pulumi login
azblob://pulumi/project2" before creating the project. Each project folder within my cloud storage now has its own .pulumi folder. This is a bit of a pain as I now have to run pulumi login when I switch between projects and I haven't been able to find a way to get StackReference to work so that Project2 can refer to Project1.
What is the correct way to do this? Ideally I would like to be able to have a single .pulumi folder with subfolders for each project and their own stacks managed inside them. Also what is the correct way to use a StackReference between cloud hosted projects?
Thanks
Alan