What exactly are you looking for when you say “new project with an existing stack”? In general that isn’t really possible - the stack is an instance of some existing project. But there is likely a way to accomplish what you are looking for if you can share more details.
l
limited-rain-96205
11/20/2019, 3:10 AM
I just want to have multiple projects each with their own 'dev', 'prod', etc stacks
limited-rain-96205
11/20/2019, 3:13 AM
In other words, it doesn't necessarily need to be the same stack, I just want to have the same name
w
white-balloon-205
11/20/2019, 3:26 AM
Are you using the local backend? I believe you are hitting https://github.com/pulumi/pulumi/issues/2522 which causes stack names to be a shared namespace across different projects when using the local backend whereas stack names are project-scoped in the Pulumi service backend. This is definitively something we want to fix as it leads to problems like you are seeing here. Mind upvoting that issue and/or adding details of your use case?
FWIW - a workaround many folks use in practice is to use
<project>-<stack>
as the stack name.
l
limited-rain-96205
11/20/2019, 3:44 AM
Ahh okay, that makes sense. Yes, I've been using the local backend, as well as a GCS bucket.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.