alessioalex / dynroute

Node CLI tool for dynamic DNS using Route53
46 stars 5 forks source link

Allow evaluating a single Route 53 zone without touching others #13

Closed tfe closed 8 years ago

tfe commented 8 years ago

So I ran into a problem where I wanted to limit access of the IAM user this script was using to a specific hosted zone, but it wants to iterate through all the available zones. Since I already know the zone ID I want, I set up an option to take a zone ID. If present, it skip listing record sets on the other zones.

Ideally, I would have avoided the ListHostedZones call altogether and just used GetHostedZone, but this was a simple change to allow what I needed without restructuring the whole lib.

alessioalex commented 8 years ago

thank you for the pull request @tfe !

I'm actually planning on refactoring this when I have the time, it's been a while now :p