Is it possible to check if `someStack.getOutput(id...
# typescript
p
Is it possible to check if
someStack.getOutput(identifier);
exists or not? The typescript output is an Output<any> but the text docs say that it can be undefined.
b
if you just want to fail if it doesn’t exist, you should be able to do that with
someStack.requireOutput(identifier)
p
it is for control flow, only execute if this cluster exists type checks. Problem is that the output is a secret so i cannot use the ‘Value’ version of this feature.