Hoping someone can help me. I'm running through th...
# general
r
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
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
"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
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
Hi @boundless-airport-99052, I'm not logged in locally.