Reputation: 307
I am trying to add 2 CNAMEs to my CloudFront distribution, but I am getting this error message:
com.amazonaws.services.cloudfront.model.CNAMEAlreadyExistsException: One or more of the CNAMEs you provided are already associated with a different resource. (Service: AmazonCloudFront; Status Code: 409; Error Code: CNAMEAlreadyExists;
I don't have another CloudFront distrubution, and I don't think anyone else has a distribution with these names since they are very unique:
"www.plataformalatina.com" and "plataformalatina.com"
Can anyone please help?
Upvotes: 1
Views: 1069
Reputation: 307
I contacted AWS support and turns out someone else had a CloudFront distribution associated with that CNAME.
Upvotes: 2
Reputation: 4461
Did you get confirmation from AWS to know if they're or wild card is not added somewhere else?
You can try this:
Try to add this www.plataformalatina.com to your Distribution.
If this works, remove alias for plataformalatina.com as well and try to add it to CloudFront. CloudFront performs check before it allows you to add any CNAME and in case of Route53 alias record, it sees that it resolves to CloudFront IP address but it doesn't know where is it added.
https://aws.amazon.com/premiumsupport/knowledge-center/resolve-cnamealreadyexists-error/
Follow above article and submit proof to Amazon that this domain belong to you and they're add the CNAME on half of you.
Upvotes: 0