This message was deleted.
# general
s
This message was deleted.
g
Something like this should work (untested)
Copy code
const jsonString = appInsights.name.apply(x => JSON.stringify({
    keyA: x,
    keyB: "valueB"
}))
const vaultSecret = new vault.generic.Secret("vaultSecret",{
    path: `kv/some/path`,
    dataJson: jsonString,
});
🙏 2
You can run the
JSON.stringify
in the callback which will have access to the resolved string value. If you need to include more than one output value, you can use
pulumi.all
before the apply
r
I've confirmed with @white-angle-34155 this works - thanks for the response @calm-apple-46440 🙂
🎉 1
w
Yeah, thanks for the quick response on this!