ambitious-father-68746
03/17/2023, 12:05 PMif
. GetOutput never fails, but returns null
as an Output, which then translates to the boolean true
. Is there any way around this?cuddly-magician-97620
03/17/2023, 1:34 PMimport * as pulumi from "@pulumi/pulumi";
const config = new pulumi.Config("my-config");
const myVar = config.get("my-config-value");
if (typeof myVar !== 'undefined') {
console.log('Config value exists');
} else {
console.log('Config value does not exist');
}
ambitious-father-68746
03/17/2023, 3:39 PM