Cross Account Alias Records

前端 未结 3 1767
心在旅途
心在旅途 2021-01-31 16:33

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

Use Case:

I have 2 AWS accounts. My domain is configured with a hosted

相关标签:
3条回答
  • 2021-01-31 16:46

    Now AWS updated the Alias records info and it is much more clear, basically you add the DNS entry for the resource in the alias field.

    https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-values-alias.html

    0 讨论(0)
  • 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.

    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. Copied my ELB DNS name from account B
    2. In account A, I created an Alias record for my zone apex (type: IPv4) and I simply pasted in the DNS name into the text field.

    I saved the record and it worked straight away.

    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.

    0 讨论(0)
  • 2021-01-31 16:59

    For those who're looking for why it doesn't work after you followed the procedure:

    that is probably that you have another domain in the other account, in this case, don't forget to add a listener rule to the target ELB.

    0 讨论(0)
提交回复
热议问题