aloof-airport-42412
01/27/2022, 12:18 AMautoscaling:environment:
testEnv: testEnv
and I want to get it in typescript code
let config = new pulumi.Config();
let test = config.get("environment.testEnv");
console.log(`Environment Variable: ${test}`);
When I run pulumi up
I get Environment Variable: undefined
rather than the environment variablelittle-cartoon-10569
01/27/2022, 12:29 AMaloof-airport-42412
01/27/2022, 12:29 AMlittle-cartoon-10569
01/27/2022, 12:30 AMautoscaling:environment.testEnv: testEnv
aloof-airport-42412
01/27/2022, 12:34 AMautoscaling: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 valuelittle-cartoon-10569
01/27/2022, 12:36 AMconst environment = config.get("environment");
<http://pulumi.log.info|pulumi.log.info>(`${environmnet.testEnv} ${environment.testEnv2} ${environment.testEnv3}`);
<projectName>:<valueName>
, so you know that testEnv, testEnv2 etc. aren't values.aloof-airport-42412
01/27/2022, 12:40 AM