Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
package-authoring
pulumi-ai
pulumi-cdk
pulumi-cloud
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by
Title
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
#golang
Join Slack