1 Answer
- Newest
- Most votes
- Most comments
0
If you perform a DNS lookup for the custom domain you're trying to add, you will see that it resolves to a CloudFront distribution. If that doesn't match the distribution you're trying to add this to, you'll get this error.
Relevant content
- asked a month ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
So is there any possibility to resolve the error and create the custom domain with the same domain name and acm
You can't have a custom domain name associated with two different CloudFront distributions at the same time. If you did that, how would CloudFront know which of the two distributions to use when a viewer makes a request? You will need to choose which distribution you want to use this custom domain name with, and then configure the DNS records accordingly. Instructions for configuring alternate domains, and the associated DNS records, can be found here: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html