Configure Route 53 domain to new version Amplify app

0

I have a domain registered in Route 53 and an app hosted in old Amplify. I configure the alias of domain's A record type to the cloudfront of the Amplify app which worked.

Now since I need advanced features such as SSR, I built a new Amplify version app (which shows preview). But I can't find the cloudfront of the new app so that I can't change the A record type to new cloudfront. Then I tried to add CNAME record type which doesn't allow me and the error message is (InvalidChangeBatch 400: RRSet of type CNAME with DNS name is not permitted at apex in zone).

So, my question is how can I change the domain redirect to my new app.

ChrisH
已提問 3 個月前檢視次數 129 次
1 個回答
0

The zone apex record cannot be a CNAME, so in these circumstances use an ALIAS record to point to an AWS resource https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html

Unlike a CNAME record, you can create an alias record at the top node of a DNS namespace, also known as the zone apex. For example, if you register the DNS name example.com, the zone apex is example.com. You can't create a CNAME record for example.com, but you can create an alias record for example.com that routes traffic to www.example.com (as long as the record type for www.example.com is not of type CNAME).

profile picture
專家
Steve_M
已回答 3 個月前
profile pictureAWS
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南