https://pulumi.com logo
c

colossal-plastic-46140

11/08/2019, 2:13 PM
Hi Pulumi Folks, Is it possible for the stack files to live in a different directory in which the `__`_`main`_`__.py` lives?
It would do numbers for the organization of our configs
w

white-balloon-205

11/08/2019, 3:36 PM
Yes - your
Pulumi.yaml
file can include a
main:
which points to another folder that contains that
__main__.py
. See https://www.pulumi.com/docs/intro/concepts/project/#pulumi-yaml.
c

colossal-plastic-46140

11/08/2019, 3:52 PM
This is great, is it possible for the configs to live in a subdir structure, such as
${root}/services/service1/service1.yaml
g

gentle-diamond-70147

11/08/2019, 4:42 PM
In your
Pulumi.yaml
you can specify a different directory to load config files from.
c

colossal-plastic-46140

11/08/2019, 4:46 PM
Yep, that makes sense, but does it recursively look for them, is my question
g

gentle-diamond-70147

11/08/2019, 4:47 PM
Oh, I see. No, I believe we don't currently support that.
c

colossal-plastic-46140

11/08/2019, 4:48 PM
The idea would be so that you can store templates along with your stack files
Do you think people would be receptive to a change in this behavior?
g

gentle-diamond-70147

11/08/2019, 4:58 PM
Could you open an issue at https://github.com/pulumi/pulumi with your use case? Can discuss in that.
c

colossal-plastic-46140

11/08/2019, 5:00 PM
Absolutely