https://pulumi.com logo
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