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년 전8955회 조회
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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠