aws-samples / aws-lambda-ddns-function

Dynamically create Route 53 resource records using CloudWatch Events and Lambda
Apache License 2.0
236 stars 116 forks source link

get_zone_id() doesn't handle split horizon DNS properly #11

Closed ktstevenson closed 7 years ago

ktstevenson commented 7 years ago

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.

ktstevenson commented 7 years ago

I'm going to close this since it is being worked on in the feature-split-horizon branch.