https://pulumi.com logo
Title
r

refined-terabyte-65361

07/27/2021, 6:59 PM
Hi I am working with existing pulumi project where i see
Pulumi.dev.yaml
Pulumi.test.yaml
Pulumi.prod.yaml
and
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
foo:project: dev
Pulumi.test.yaml
foo:project: test
Pulumi.prrod.yaml
foo:project: prod
how does pulumi up know where to get the variable from ?
b

billowy-army-68599

07/27/2021, 7:07 PM
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

refined-terabyte-65361

07/27/2021, 7:13 PM
thanks This info was helpful
b

brave-planet-10645

07/28/2021, 9:24 AM
I was really hoping @powerful-electrician-48045's first comment was
magic
(or similar)