Hi I am working with existing pulumi project wher...
# typescript
r
Hi I am working with existing pulumi project where i see
Copy code
Pulumi.dev.yaml
Pulumi.test.yaml
Pulumi.prod.yaml
and
Copy code
index.ts
in pulumi.foo.yaml file there are some variables which are being used by index.ts how does pulumi know where to access variable from eg: there is a variable present in all 3 files Pulumi.dev.yaml
Copy code
foo:project: dev
Pulumi.test.yaml
Copy code
foo:project: test
Pulumi.prrod.yaml
Copy code
foo:project: prod
how does pulumi up know where to get the variable from ?
b
Hi Yagami. This comes from your current stack. You can see which stack you're currently using by running `pulumi stack ls`: There'll be a star next to it. So if you're using the
test
stack you'll see
foo:project: test
each stack will have a file associated with it which contains its config values
👍 1
r
thanks This info was helpful
b
I was really hoping @powerful-electrician-48045's first comment was
magic
(or similar)