amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

DNS config for domain managed in separate AWS Route 53 account

Open lucasishuman opened this issue 3 years ago • 1 comments

Before opening, please confirm:

App Id

d2frxnc8yrk6a

Region

us-west-2

Step

Root domain configuration

Status

Subdomains work, root domain does not

Issue or question

It is very easy to configure a custom domain for an Amplify app when the domain is managed in Route 53 within the same AWS account. https://docs.aws.amazon.com/amplify/latest/userguide/to-add-a-custom-domain-managed-by-amazon-route-53.html

There is also good documentation about how to configure a custom domain for an app hosted by a third party. https://docs.aws.amazon.com/amplify/latest/userguide/to-add-a-custom-domain-managed-by-a-third-party-dns-provider.html

However, I am not 100% sure how to configure a custom domain for my Amplify app where the domain is managed by Route 53 in a separate AWS account which is not my own.

I've been treating it as a 3rd party since I cannot browse and select the domain directly from within the console as I can with domains in my own account. I have verified the domain, added two subdomains and the 'root' domain. The subdomains are working great after adding the CNAME records to DNS in separate Route 53 account (including a 'www' subdomain)

However, when it comes to the "root" domain... there is not a way to manually add the ANAME record in the separate Route 53 account (step 12 in 3rd-party DNS docs). There is also not a way to add a CNAME to the root domain (step 11 of 3rd-party DNS docs). https://docs.aws.amazon.com/amplify/latest/userguide/to-add-a-custom-domain-managed-by-a-third-party-dns-provider.html

What is the proper path for configuring Route 53 DNS in a separate AWS account from the one where my Amplify app lives?

Thank you.

Error message

Root domains do not resolve eg. https://besupernatural.com

Subdomains do resolve Eg. https://www.besupernatural.com

Additional information

image

lucasishuman avatar Jul 20 '22 22:07 lucasishuman

Screens from separate Route 53 DNS management

Screen Shot 2022-07-20 at 8 47 49 PM

Screen Shot 2022-07-20 at 8 48 21 PM

lucasishuman avatar Jul 21 '22 00:07 lucasishuman

Apologies for the delay. This is a limitation with Amazon Route53. As you've discovered, there isn't an option to provide an ALIAS record for resources that exist outside of the same account. The only workaround is to migrate the custom domain to Route53 in the same account your Amplify app is in so you can use the root domain.

ghost avatar Aug 23 '22 23:08 ghost

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Aug 23 '22 23:08 github-actions[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Oct 28 '22 01:10 github-actions[bot]