Channels
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
general
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#golang
Title
s
salmon-account-74572
07/17/2020, 2:17 PM
Does anyone have an example of using a StackReference in Go?
i
important-appointment-55126
07/17/2020, 3:02 PM
haven’t had to use them as yet, but the docs do have a Go example
https://www.pulumi.com/docs/intro/concepts/programming-model/#stack-references
l
lemon-agent-27707
07/17/2020, 3:16 PM
For an example of what you might need to do to transform a resulting value to a particular output type:
https://github.com/pulumi/pulumi/blob/master/sdk/go/pulumi/stack_reference.go#L25-L33
👍 1
s
salmon-account-74572
07/17/2020, 4:37 PM
Thanks--I have the StackReference working (I think), but having some issues with types. I'll start a separate thread for that.
3 Views
Post