-
-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to use private IPv4 for route53 #469
Conversation
This option makes it possible to set the private IPv4 address of the instance in the DNS record of route53.
Some feedback on this would be great. |
Actually, I'm pretty surprised that route53 entry is not another resource and it's tied to the machine. Maybe would be better to refactor this? That way you can write you function to map machines to route53 resources. |
@spinus Interesting. Could you provide an example how one could bind the IP if route53 would be an resource? Apart from that, changing route53 to be a resource would also be a breaking change. |
I wouldn't break it. Old method can be there or new method can autogenerate config to support old way + generating some "warning" message. |
cc @rbvermaa |
I would love to see route53 as separate resource. |
Alright, so I think the suggestions for having route53 as a separate resource makes sense. Unfortunately I’m not really fluent in python so I’m not sure if I can implement the necessary changes. So if somebody else wants to take over, please do so. Otherwise it would be nice if you could give me some guidance. |
Mathias, I would say, the first step could be just copy paste some existing AWS I could help if you need more details. 2016-07-22 11:36 GMT+01:00 Mathias Schreck notifications@github.com:
Tomasz Czyż |
Is this PR still WIP, if not, I suggest removing the WIP from the title. |
@rbvermaa The changes are functional and we actually use this for one project since several months. |
@@ -60,6 +60,16 @@ with lib; | |||
''; | |||
}; | |||
|
|||
deployment.route53.usePrivateIp = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The duplicated PR https://github.com/NixOS/nixops/pull/630/files has two improvements over this one that I think could be incorporated for this PR to be merged:
-
better error handling (double if/else logic)
-
mentions that
Private Hosted DNS zones
needs to be used with this option
Closing in favor of #753. |
After testing the resource approach from #753 I’m now unsure if the approach works at all. The private IP gets assigned automatically at deploy-time and is not a static configuration. So I currently don’t see a way how to get this IP in the resource. The example from @spinus doesn’t work because I guess this is also the reason why route53 is currently bound to the deployment of the machine instead of being a separate resource. |
I took a very quick look today and seems like |
I've merged 0dbb6b3 as it has been three years and having the option to set the private DNS entry is reasonable one :) |
This option makes it possible to set the private IPv4 address of the instance in the DNS record of route53.
Due to the policies of my company we are not allowed to use public IPs for internal infrastructure servers. That’s why we need to associate private IPs with a route53 hostname.
I’m not sure about the option name. From a user perspective I would probably prefer a single option where you can specify whether to use public ip, private ip or public DNS name but that would be a breaking change, so I decided to introduce a second separate option.