Problem
You have create a CloudFront distribution with a custom domain name (such as yourdomain.com).
Now if you try to link this distribution to your domain using Route 53, you get the following error message:
`No AWS resource exists with the Alias Target that you specified.`
Solution
Try the following to solve this problem:
- Make sure that the CNAME you specified for the CloudFront distribution matches your domain name exactly. For instance, if your domain name is http://www.yourdomain.com, make sure that this is also the CNAME.
- When creating the record set in Route 53, make sure to select the record type `A – IPv4 Address` and not CNAME.
Thank you for this. It’s a very confusing implementation by AWS. Usually these are CNAMEs, not “A aliases”. Anyway, I presume the same works with subdomains?
Thank you for your comment! Yes, it should work the same with subdomains!
Thanks for this — I was also trying a CNAME to no avail.
Their documentation states that in order to create a Route53 record set with an alias to the CloudFront distribution domain on an APEX record (e.g. root domain ) you must use an A-type record.