Add a custom domain to AWS Amplify react-app

0

Hi all!
I've successfully built my react-app with AWS Amplify (step 1 is completed)
Now I need to add a custom domain that I already own (purchased not with aws route 53).
What I've done:

  1. I hosted a zone with my domain name using Route 53.
  2. I changed my domain's DNS-servers to given by Route 53 four name servers under "Value/Route traffic to" (step 2 is now marked as completed in amplify console)
  3. Before I did this, when I entered my domain name into the browser I could see a message "This domain was purchased from companyname" and their logo.
  4. Now DNS records seem to have changed, but domain stopped working.. Google Chrome says: "This site can’t be reached. DNS_PROBE_FINISHED_NXDOMAIN"

Edited by: MikhailOG on Jan 17, 2021 11:24 PM
I managed to make it work adding a subdomain (CNAME record route 53). But root domain still doesn't work.. Amplify says I need to add an ANAME record to the root. Route 53 added type A record to the root when I added root URL to amplify. But I can only access my web page using subdomain.

질문됨 3년 전868회 조회
3개 답변
0

Add URL (subdomain) to your domain in amplify console. Then it adds a record (ANAME) in route 53 hosted zone.

답변함 3년 전
0

Could you change your TTL to 30(for testing purpose)?

Just in case, TTL is The amount of time, in seconds, that you want DNS recursive resolvers to cache information about this record. If you specify a longer value (for example, 172800 seconds, or two days), you reduce the number of calls that DNS recursive resolvers must make to Route 53 to get the latest information in this record.

AWS
답변함 9달 전
0
profile picture
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠