Hey everyone, I read about the Output API, I can use it fine as Input to other Pulumi resource, but I have a case where I just need to convert the output to a regular string, how can I achieve this? .apply() or any other Output func also return Output. There’s no way to do that probably ,right?
09/28/2021, 11:03 PM
There is no possibility to turn an output to a string at the same level. You must use the string value inside the output. What are you looking to use the value for? Can you do that inside the apply?
09/28/2021, 11:09 PM
the original idea was the use the ids of multiple namespaces as part of the name string of an azure vault secret CR inside each namespace. I figured I could get the output of the namespace object and use the id attribute in a helper function to generate unique names for these customresources.
nevermind, I got it to work. I just needed to complain about it here 😄