How can I claim a CNAME for my Cloudfront distribution?

0

I want to create a cloudfront distribution with an alternate domain.

I can't because there is another cloudfront distribution NOT OWNED BY ME that uses that alternate domain name.

I am the owner of the domain and I cannot create a cloudfront distribution for that domain....

So I am stuck. how can I claim it without having to pay for tech support since this is not tech support, this is an AWS bug.

asked a month ago57 views
2 Answers
2

Hello.

The error cannot be resolved unless you unbind the domain from the CloudFront it's bound to.
Also, as stated in the following documentation, if CloudFront is hosted in an AWS account other than your own, you will need to contact AWS Support.
https://repost.aws/knowledge-center/resolve-cnamealreadyexists-error

If you don't have access to the account that contains the source distribution or you can't deactivate the source distribution, then contact AWS Support.

profile picture
EXPERT
answered a month ago
profile pictureAWS
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed a month ago
  • you do realize that I own the domain? I could create cloudfront distributions and set your domain as alternate domain names and you would not be able to create distributions and you would be required to pay to solve this

    this is NOT OK

-1

This is indeed a frustrating situation, but it's not necessarily an AWS bug. It's a security measure implemented by AWS to prevent potential conflicts or hijacking of domains across different AWS accounts.

To claim the CNAME for your CloudFront distribution when it's already associated with another distribution not owned by you, you have a few options:

  1. Use the AWS CLI command: aws cloudfront list-conflicting-aliases --distribution-id <your-distribution-id> --alias <your-domain-name> This will provide more information about the conflicting resource, including a partial Account ID and Distribution ID.

  2. Double-check that you've removed any previous CloudFront distributions or other AWS resources that might be using this domain, including in other AWS accounts you may have.

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

  4. Verify that you don't have any AWS Amplify apps that might have created an internal CloudFront distribution using your domain.

  5. Ensure that you have properly set up your DNS configuration to point to your new CloudFront distribution. You need to have permission to create CNAME records with your DNS service provider.

  6. Make sure you have a valid SSL/TLS certificate for the domain, either through AWS Certificate Manager (ACM) or a third-party certificate authority.

If none of these steps resolve the issue, unfortunately, the standard solution is to contact AWS Support. While this typically requires at least a Developer Support plan, which does come with an additional cost, 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 consider using a different subdomain that's not conflicting, though this isn't ideal if you need to use the specific domain or subdomain in question.

It's important to note that while this situation is inconvenient, it's not a bug but rather a security feature designed to protect domain owners. However, the process for resolving such conflicts without paid support could certainly be improved.
Sources
One or more of the CNAMEs you provided are already associated with a different resource. | AWS re:Post
Use custom URLs by adding alternate domain names (CNAMEs) - Amazon CloudFront
Configure alternate domain names and HTTPS - Amazon CloudFront

profile picture
answered a month ago
  • I am the domain owner, so this does not really help

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.

Guidelines for Answering Questions