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

happy-gpu-24908

11/15/2021, 5:44 AM
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

billowy-army-68599

11/15/2021, 5:52 AM
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

happy-gpu-24908

11/15/2021, 5:53 AM
I think I got the idea. Thank you @billowy-army-68599
b

billowy-army-68599

11/15/2021, 5:54 AM
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
3 Views