Skip to content

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

0

While I read all of the other posts with the same title ( or similar ) , neither provided the solution to my case, I have an account under my control where I set up CloudFront, I own a ( personal ) domain I want to use on this Distribution, I have issued and ACM cert already for this given domain ( via e-mail validation ) I pointed the DNS to this given Distribution, and yet it's still get this error, I understand that, it probably exist elsewhere but that isn't under my control, and as I already proven the ownership of the domain with e-mail ( in ACM ) and ownership of the DNS with setting up the CNAME, I am a bit stuck on how can I get control over my own domain? I understand that I could raise a technical support ticket and maybe get this resolved, but fundamentally this means that unless I pay extra ( for at least Developer Support ) I have no means to claim ownership of my own domain.

2 Answers
0

The issue you're experiencing is indeed frustrating and not uncommon. When you receive the error "One or more of the CNAMEs you provided are already associated with a different resource," it typically means that the domain or subdomain you're trying to use is already configured for another CloudFront distribution, possibly in a different AWS account.

Even though you own the domain and have proven ownership through ACM certificate validation and DNS configuration, CloudFront treats each alias (CNAME) as globally unique across all AWS accounts. This is a security measure to prevent potential conflicts or hijacking of domains.

Unfortunately, in cases where the conflicting resource is not under your control or visible in your account, the standard solution is to contact AWS Support. You're correct that this typically requires at least a Developer Support plan, which does come with an additional cost.

To try to resolve this without immediately resorting to paid support:

  1. Double-check that you've removed any previous CloudFront distributions or other AWS resources that might be using this domain.

  2. Use the AWS CLI command aws cloudfront list-conflicting-aliases --distribution-id <your-distribution-id> --alias <your-domain-name> to get more information about the conflicting resource.

  3. If the conflicting resource is in another of your AWS accounts, you'll need to remove the alias from that distribution first.

  4. If you've recently acquired the domain or transferred it, wait 24-48 hours as sometimes there can be a delay in propagation.

  5. Check if you have any AWS Amplify apps that might have created an internal CloudFront distribution using your domain.

If none of these steps resolve the issue, you may indeed need to escalate to AWS Support. While it's not ideal to require paid support for this issue, it's currently the most direct way to resolve conflicts that aren't visible or manageable through your account's console or CLI.

As a last resort, you could try using a different subdomain that's not conflicting, though this isn't a satisfactory solution if you need to use the specific domain or subdomain in question.
Sources
One or more of the CNAMEs you provided are already associated with a different resource. | AWS re:Post
One or more of the CNAMEs you provided are already associated with a different resource | AWS re:Post
One or more of the CNAMEs you provided are already associated with a different resource | AWS re:Post
"One or more of the CNAMEs you provided are already associated with a different resource." issue when I add my CNAME's to my cloudfront distribution. | AWS re:Post

answered 2 years ago

EXPERT

reviewed 2 years ago

0

The command in Step 2 gives me a partial Account ID and partial Distribution ID, however it's not something I have access to ( as per stated already in the original post )

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.