Hi Pulumi Folks, Is it possible for the stack file...
# general
c
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
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
This is great, is it possible for the configs to live in a subdir structure, such as
${root}/services/service1/service1.yaml
g
In your
Pulumi.yaml
you can specify a different directory to load config files from.
c
Yep, that makes sense, but does it recursively look for them, is my question
g
Oh, I see. No, I believe we don't currently support that.
c
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
Could you open an issue at https://github.com/pulumi/pulumi with your use case? Can discuss in that.
c
Absolutely