magnificent-lifeguard-15082
01/16/2022, 11:32 PMpulumi.json.stringify = (obj: JsonValueWithPotentialOutputsToJsonValue) => Output<string>
The return value here is an Output to a json string where the Output has collected all dependencies discovered while walking the passed object (JsonValueWithOutputs)
Edit: just use pulumi.output(obj).apply(uObj => JSON.stringify(uObj))
as output() deeply unwrapps 🎉 thanks pulumi team (lots of complexity is trivialised in the input/output api for us!)output()
do this itself (ofc without the stringify) https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/#outputdeeply unwrapping nested Input values as necessary
pulumi.output(obj).apply(uObj => JSON.stringify(uObj))
little-cartoon-10569
01/17/2022, 12:56 AM