https://pulumi.com logo
#general
Title
# general
t

thankful-optician-22583

09/26/2019, 12:56 AM
Hey guys, so I was looking at pulumi/pulumi/runtime/config.js and I noticed that the config file that we create for each stack, is set into an env variable called
Copy code
PULUMI_CONFIG
This means that when we do
Copy code
Pulumi Up
the file is loaded as a string and parsed into a map. This would mean that if we wanted to have a hierarchical config structure for the config, we need to append the base config to this env_variable
Copy code
PULUMI_CONFIG
. My suggestion seems so hacky. As a team we decided to create a wrapper class for the config that reads from the pulumi Config class and also from a file. This way we can have a one level hierarchical structure.