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
plugin-framework
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
b
billowy-needle-56870
05/25/2020, 4:14 PM
Hi. I’m trying to make something like this with go,
https://github.com/pulumi/examples/blob/master/aws-ts-static-website/index.ts#L107
. But how can I convert the output of the route53.GetZone function to the input of the route53.NewRecord?
l
lemon-agent-27707
05/26/2020, 2:35 PM
GetZone returns a Zone
https://github.com/pulumi/pulumi-aws/blob/master/sdk/go/aws/route53/zone.go#L13-L32
You should be able to reference the ZoneId on the returned struct, and pass it in to the RecordArgs struct for the NewZone call:
https://github.com/pulumi/pulumi-aws/blob/master/sdk/go/aws/route53/record.go#L191-L221
3 Views
#golang
Join Slack