sparse-intern-71089
06/12/2019, 3:36 PMwhite-balloon-205
pulumi.runtime.allConfig()
?
And what do you see if you get process.env[“PULUMI_CONFIG]
?square-bear-79319
06/12/2019, 4:53 PMPulumi.runtime.allConfig()
the output is {
'aws:region': 'us-east-1',
'wawa-runtime-istio': { istio_version: '1.1.7' }
}
and for process.env{"PULUMI_CONFIG"]
the output is {
"aws:region": "us-east-1",
"wawa-runtime-istio": {
"istio_version": "1.1.7"
}
}
square-bear-79319
06/12/2019, 4:54 PMlet istio_version = configs.get("istio_version");
square-bear-79319
06/12/2019, 5:00 PMprocess.env.PULUMI_NODEJS_PROJECT="wawa-runtime-istio";
process.env.PULUMI_CONFIG="{ \"aws:region\": \"us-east-1\", \"wawa-runtime-istio:istio_version\": \"1.1.7\" }";
Looks like the value in nodejs_project should be the same as the one given for each of the custom variables. This was somehow not obvious and hence the confusion. Please let know if that is not the case.