The get_zone_id(zone_name) function does not expect route53.list_hosted_zones() to return multiple zones. It always returns the first zoneid in the list. A split-horizon deployment will have both a public and private zone with the same zone_name. This causes one of the zones to not receive the proper update from the lambda function.
The get_zone_id(zone_name) function does not expect route53.list_hosted_zones() to return multiple zones. It always returns the first zoneid in the list. A split-horizon deployment will have both a public and private zone with the same zone_name. This causes one of the zones to not receive the proper update from the lambda function.