跨账户别名记录 [英] Cross Account Alias Records

查看:69
本文介绍了跨账户别名记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Route 53中为另一个AWS账户中的资源创建别名记录?

Is it possible to create an Alias record in Route 53 to a resource in another AWS account?

用例:

我有2个AWS账户.我的域在帐户A中配置了托管区域,帐户B中有一个ELB.我想在帐户B中为我的域的ELB创建一个记录,用于我的域的区域顶点-必须在帐户A中进行配置.

I have 2 AWS accounts. My domain is configured with a hosted zone in account A and I have an ELB in account B. I want to create a record to my ELB in account B for my domain's zone apex - which has to be configured in account A.

有人知道我该如何解决吗?我知道我可以通过计费支持将域名转移到帐户B,但我不希望这样做.另外,将资源从帐户B迁移到帐户A对我来说是不可行的.

Does anyone know how I can get around this? I know I can go through billing support to have the domain transferred to account B but I would prefer not to do this. Also, it is not viable for me to migrate the resources from account B to account A.

推荐答案

所以我找到了解决方案.实际上,您可以为另一个帐户中的资源创建别名记录.

So I've found the solution. You can in fact create an Alias record to a resource in another account.

答案在文档中,尽管在我看来它的描述有点模糊.

The answer is in the documentation although it's description is a little vague in my opinion. See here under the ELB heading.

如果您使用其他帐户创建Amazon Route 53托管区域和负载均衡器–输入在获取ELB负载均衡器的DNS名称过程中获得的值.

If you used different accounts to create your Amazon Route 53 hosted zone and your load balancer – Enter the value that you got in the procedure Getting the DNS Name for an ELB Load Balancer.

结果,这就是我所做的:

As a result, here's what I did:

  1. 从帐户B复制了我的ELB DNS名称
  2. 在帐户A中,我为我的区域顶点(类型:IPv4)创建了一个Alias记录,我只是将DNS名称粘贴到了文本字段中.

我保存了记录,并且记录立即生效.

I saved the record and it worked straight away.

粘贴ELB的DNS名称后,您会注意到Alias托管区域ID与ELB的说明标签中的托管区域ID匹配.

After you paste in your ELB's DNS name, you'll notice that the Alias Hosted Zone ID matches the Hosted Zone ID in your ELB's description tab.

这篇关于跨账户别名记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆