CloudFront - One or more of the CNAMEs you provided are already associated with a different resource

1

Hi,

I have a situation where there is a CloudFront distribution in one AWS account and Route53 in another AWS account (not related in AWS), then I do the following:

  1. I switch CNAME in Route53 to use CloudFront distribution - everything works on HTTP (both through CloudFront domain name and through the Route53 domain name)
  2. I configure CloudFront to use SSL Certificate - everything works while saving (but there is error on HTTPS - 503)
  3. I update 'Alternate Domain Names (CNAMEs) on CloudFront - I get an error while trying to Save

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;

Which would suggest that CloudFront sees a CloudFront distribution (itself) already configured in the CNAME and fails.

Any suggestions how to go around this are appreciated!

  • I have deleted all my cloudfront distributions still I am facing same issue why ? I want to delete a certificate also . It is showing used in cloudfront resources . but I have no distribution

AWS
已提問 5 年前檢視次數 9005 次
1 個回答
1
已接受的答案

It sounds like there is another distribution created with the same (or an overlapping) CNAME configured - this could be the same or in any AWS account.

You should check your CloudFront resources, as well as any other services that may create a cloudfront distribution on your behalf (such as API Gateway).

Failing that, reach out to support with more specific information and they'll be able to provide more specific guidance.

AWS
ctd
已回答 5 年前
  • For me, it was an old AWS Amplify app that I had created while following a tutorial on YouTube. If anyone else has this issue you may need to delete an app you suspect has the same CNAME.

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

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

回答問題指南