https://pulumi.com logo
#golang
Title
# golang
e

eager-branch-34449

03/27/2021, 3:37 PM
Hey, quick question, how do I get a
pulumi.String
from a
pulumi.StringOutput
? (get the value of
pulumi.StringOutput
which is private) I’m trying to put together a policy statement with functions and the
pulumi.StringOutput
is giving me a headache.
c

clever-byte-21551

03/27/2021, 8:02 PM
did try to use
pulumi.Sprintf
? it allows you to use format strings with
pulumi.StringOutput
and
pulumi.String
e

eager-branch-34449

03/28/2021, 5:09 PM
Yes, I already tried to work with it but i still cannot get the string out of the
StringOutput
struct
3 Views