Hi, can someone help me with this? <https://github...
# golang
h
Hi, can someone help me with this? https://github.com/pulumi/pulumi/discussions/8414 In short: I want to marshal
pulumi.StringOutput
to json/yml. But I can't. It just print's some memory address.
b
Hey there. you can do this using an apply. There's an example of how you'd do this here: https://github.com/pulumi/examples/blob/ca40203279f393c0c159dadcadc97c6007122997/aws-go-assume-role/create-role/main.go#L33-L49 here's a blog post explaining how outputs and apply works: https://www.leebriggs.co.uk/blog/2021/05/09/pulumi-apply.html
h
I think I got the idea. Thank you @billowy-army-68599
b
i'm logging off now, but if you have trouble getting it working, post the code you have and I'll follow up tomorrow
👍 1