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
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
Post