Skip to content

AWS Amplify CNAMEAlreadyExistsException Error

0

Hey everyone,

I have an Amplify application that I'm trying to use my own domain with (that I can confirm I have through Route 53). I keep getting a CNAMEAlreadyExistsException error but have checked my cloud front distributions and have no other Amplify apps that are using this custom domain. Is there any way I can "reset" the deployment of the domain so that I can use this domain again? What happens if this domain is being used by another Amplify project, but I don't have access to it? What is the point of owning the domain then? Thanks for the help.

2 Answers
0

Hi!

If you get a CNAMEAlreadyExistsException error, this means that one of the host names that you tried to connect (a subdomain, or the apex domain) is already deployed to another Amazon CloudFront distribution. Furthermore, if you are using www.example.com for another app, you cannot use www.example.com with the app that you are currently connecting. You can use other subdomains, such as blog.example.com.

Here is a document that explains how to troubleshoot custom domains:

https://docs.aws.amazon.com/amplify/latest/userguide/custom-domain-troubleshoot-guide.html#i-get-a-cnamealreadyexistsexception-error

Please inform me if my answer was satisfactory by accepting my response with an up-vote.

AWS

answered 3 years ago

  • Hey, thanks for the link. I've actually seen the link before and am stuck at getting a certificate that I own the domain. I've added the CNAME record in Route 53 but am stuck in Pending validation status. Is there anything else I have to do to verify my ownership?

0

Did you get a chance to see this article:

https://repost.aws/knowledge-center/acm-certificate-pending-validation

Assuming you are using ACM and utilizing DNS validation.

Please inform me if my answer was satisfactory by accepting my response with an up-vote.

AWS

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.