https://pulumi.com logo
#general
Title
# general
r

red-football-97286

01/06/2020, 4:22 PM
Hoping someone can help me. I'm running through this guide on Stack Reference, https://github.com/pulumi/examples/tree/master/aws-py-stackreference When I create department under the company directory, it won't allow me to create
pulumi stack init dev
as it says it already exists. What am I doing wrong?
g

gentle-diamond-70147

01/06/2020, 4:24 PM
The stack name (e.g.
dev
) must be unique to the project - e.g.
aws-py-stackreference-company
,
aws-py-stackreference-department
, etc.
The project name is determined by the
Pulumi.yaml
file that is in the directory where you run
pulumi stack init ...
.
Can you elaborate on "When I create department under the company directory..." ?
To create a
dev
stack for each project, you would
pulumi stack init dev
from each of the company, department, and team directories.
r

red-football-97286

01/07/2020, 9:50 AM
"Can you elaborate on "When I create department under the company directory..." ?" Hi @gentle-diamond-70147, So i'm creating the directory structure like so: Company |_ Department Then running
pulumi new aws-python
in each directory.
b

boundless-airport-99052

01/07/2020, 5:23 PM
I guess you are using
pulumi login -local
. In this case, all stacks name should be unique cross all pulumi projects. It’s not the case if you use the pulumi backend
r

red-football-97286

01/09/2020, 10:39 AM
Hi @boundless-airport-99052, I'm not logged in locally.