Hi. I’m trying to make something like this with go...
# golang
b
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
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