This message was deleted.
# general
s
This message was deleted.
l
Is your project called "autoscaling"?
a
yes
l
So you could have
autoscaling:environment.testEnv: testEnv
What are you hoping to achieve?
a
so I am looking at nested configuration because I want to have a bunch of environment variables under that. so
Copy code
autoscaling:environment:
  testEnv: testEnv
  testEnv2: testEnv2
  testEnv3: testEnv3
I just don't know how to get the value of these in typescript code as in the above I have tried
config.get("environment.testEnv")
but It doesn't seems to be getting the value
l
That set-up creates an object called environment with three properties. Is that what you want?
Copy code
const environment = config.get("environment");
<http://pulumi.log.info|pulumi.log.info>(`${environmnet.testEnv} ${environment.testEnv2} ${environment.testEnv3}`);
Values are always of the form
<projectName>:<valueName>
, so you know that testEnv, testEnv2 etc. aren't values.
They're just properties on an object that is encoded in YAML.
a
ahh I see, thank you