https://pulumi.com logo
Title
b

billowy-needle-66127

05/01/2023, 5:53 PM
Is it possible to structure a project like this?
./
  - Pulumi.yaml
  - production/
      - Pulumi.production.yaml
      - ...
  - dev
      - Pulumi.dev.yaml
      - ...
c

cuddly-computer-18851

05/02/2023, 1:37 AM
Yes, you can use the
--config-file
CLI flag when calling pulumi, or specify
stackConfigDir
in Pulumi.yaml
My preference is to set
stackConfigDir: stacks
then put all the environment config files under a single stacks/ directory
b

billowy-needle-66127

05/02/2023, 9:43 PM
Maybe I'm missing something, but
--config-file
doesn't seem to be doing what I'm looking for. I don't see how
stackConfigDir
would help here either, as I don't want all my stack config in one directory. I was hoping to get every stack in its own directory.
c

cuddly-computer-18851

05/03/2023, 8:01 AM
--config-file
lets you specify where your config file is, when you invoke pulumi though?