i’m trying to get a value out of the config, get i...
# golang
a
i’m trying to get a value out of the config, get it’s concrete string value using ApplyT, and then use that string value in a text template. i then return that template string in the ApplyT function, and I’d like to use the file contents in a resource
b
@astonishing-gpu-28317 you shouldn't need to convert an input to an output, but if you have a standard string you can just use pulumi.String
a
when i do
myConfig.RequireSecret(…)
, the return type is an input
b
Oh, I think there should be a .toStringOutput function
a
i need to do some transform steps to that value, and then i want to use it as a pulumi.String in a resource i’m creating
but if i do
myConfig.RequireSecret(…).ApplyT(…)
, I wind up with an
Output
actually, i see what my mistake was. i thought i needed an
Input
, but I actually needed a
StringOutput
and I had just a vanilla
Output
. my mistake