Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upspecific public or private hosted zones #421
Conversation
…53Provider
|
This is close, after getting the tests working and taking it out of Draft PR, I had come up with issues so I made the tests fail again so it wouldn't be merged prematurely. Right now with the new code, if the private hosted zone doesn't exist, OctoDNS will attempt to create it, but as a public hosted zone. One issue with automatically creating the private hosted zone is that you have to specify a VPC ID that it goes with. I'm thinking the best approach for this is just to raise an Exception and say creation of private hosted zones is unsupported, and that it must be created manually before it can be managed by OctoDNS The other thing I was thinking of is that this could be a "breaking" change for someone who uses the current version of the Route53Provider with a mix of public and private hosted zones, but none that have the same name. In that case, this new code would no longer find the private hosted zones and would attempt to make public hosted zones with the same names. A user would probably have to create a new section in their configuration for a I'm not sure if that's acceptable or not. I'd have to do some thinking to figure out a solution that doesn't create that breaking behavior. The public/private with the same name make it really hard, as the zone name is the unique ID throughout OctoDNS, and other providers don't have the concept of private hosted_zones. |
There's been a couple things come up that want/need the ability to attach metadata at the zone level, this seems like it'd be another ++ on that idea (don't remember the others offhand.) Something like: foo.internal.net.:
_octodns:
route53:
vpc-id: vpc-123456 # implies privateThat may be more of a change than makes sense to add here. The blow up if it doesn't exist and tell them to create it seems fine (and we can circle back someday and improve things with something like the above.) IIRC the main issue is that there's not really a logical place for the data to be hydrated/attached as the way the manager works with zones currently doesn't involve a Zone object that matches the needed scope (been a long time since I thought about this so could be mis-remembering.) I think it should be possible to address this, just didn't seem like a trivial change at the time.
That's a good question/point. Maybe the default (nothing mentioned) has to continue to work the way it currently does and then things explicitly have to say |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

yzguy commentedNov 14, 2019
Will address #420, #260 and #190
Need to finish up the code coverage
This would allow you to specify 2 providers, one with
private_zonesset totrue. That provider would only look at the private hosted zones, whereas by default it will only look at public hosted zones.