我非常难以在两个通过组织层次结构相互关联的AWS账户上进行环境设置。我的根DNS提供商是 GoDaddy ,该主机托管-static
的DNS记录。我们有多个服务需要托管在子域example.com
上。我的设置就像:
services.example.com
的根DNS提供商。已为example.com
的 NS记录条目指向 AWS Prod帐户的托管区域 services.example.com
。在此托管区域中,我具有用于生产服务services.example.com
,service1.services.example.com
等的 A记录。服务1 :
service2.services.example.com
test.service1.services.example.com
uat.service1.services.example.com
服务2 :
release.service1.services.example.com
test.service2.services.example.com
uat.service2.services.example.com
答案 0 :(得分:2)
在Acc 2中为service1.services.example.com
创建一个托管区域。
请注意Route 53为其分配了新的托管区域的4个名称服务器。
返回Acc 1上的services.example.com
(主区域),使用记录类型NS创建一个新的资源记录,其主机名为service1
,并在路径1中输入Route 53分配的4个名称服务器。下面的框。
您刚刚将service1.services.example.com
子域以及其中的所有主机和子域委派给另一个托管区域,现在您可以专心地对其进行管理,而不会影响其他记录。
并且只需对要委派的所有其他服务重复相同的过程。您将最终为每个服务都有一个新的托管区域,但这是一个很好的方法。
子域的托管区域可以在同一帐户中,也可以在其他帐户中。