This message was deleted.
# general
s
This message was deleted.
s
have tried this among other apply techniques:
Copy code
exports.apiKey1 = pulumi.all([apikeys.keys[0].apikey.name, apikeys.keys[0].apikey.value]).apply(([name, value]) => `${name}: ${value}`)
just want to get a concise output of the name of the key and the value Key: NAME Value: VALUE
w
What you have looks to first approximation like it should work. What do you see when you use that? It can be a little simpler with:
Copy code
exports.apiKey1 = pulumi.interpolate`${apikeys.keys[0].apikey.name}: ${apikeys.keys[0].apikey.value}`
s
stuff is "working" but the result is an error warning:
"Calling [toString] on an [Output<T>] is not supported.\n\nTo get the value of an Output<T> as an Output<string> consider either:...
w
Do you see that with the code above? Actually not sure how that could be.
s
will check...
yeah, that worked! thanks