This message was deleted.
# general
s
This message was deleted.
g
You must provide the Zone ID that is set by Route53.
You can do this by hardcoding it, using a config value (e.g.
new pulumi.Config().require("zoneId")
), or you can do a look up to get the Zone ID based on the zone name.
s
@gentle-diamond-70147 Thanks for reply. I can't hardcoding it. But this code works -
tg.loadBalancer.loadBalancer.zoneId
g
Oh, I see. Sorry I misunderstood. I thought you were asking about the
hostedZoneId
for the record itself, not the aliases. 👍
l
@gentle-diamond-70147 -- how would we do a lookup for the hostedZoneId? I see there is get_zone (https://github.com/pulumi/pulumi-aws/blob/master/sdk/python/pulumi_aws/route53/get_zone.py) but not sure how to use that value properly. Could you provide an example for python possibly?