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

0

Hello everyone I have an issue with CloudFront and I am stuck. I am trying to add an alternate domain name to my CloudFront distribution but I am getting this error

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

I am trying to add www.oldiprillo.dev to the distribution and the error said this cname is used from another resource. Although I have only one CloudFront distribution which i am trying to add an alternate domain name and i have no other resource using this cname. I have been stuck here for days I don't know what is going on.

I have a clue that maybe this error is caused by am amplify app i was using this cname but now that app is deleted and maybe the canme allias is still active somehow.

I have tried as well to use aws cli and use list-conflicting-aliases command targeting my distribution id and this is the resault I am getting.

{
    "ConflictingAliasesList": {
        "MaxItems": 100,
        "Quantity": 1,
        "Items": [
            {
                "Alias": "oldiprillo.dev",
                "DistributionId": "******UDRPHSV",
                "AccountId": "******200621"
            }
        ]
    }
}

This is very wired because on my aws account there is no distribution ending with "UDRPHSV" and also there is no account id ending with "200621". I dont know who controll this cname allias i dont know how to remove it.

4 Answers
0

The following documentation says to try again at least one hour after deleting the amplify app.

https://docs.aws.amazon.com/amplify/latest/userguide/custom-domain-troubleshoot-guide.html#i-get-a-cnamealreadyexistsexception-error

I get a CNAMEAlreadyExistsException error

  1. If this domain was successfully connected to another app and then deleted within the last hour, try again after at least one hour has passed. If you still see this exception after 6 hours, see GitHub Issues and open a new issue if it doesn’t already exist.
profile picture
hayao-k
answered 2 years ago
0

It has been passed 2 days now so I guess I need to open an issue.

answered 2 years ago
0

Hi there

When you set up a custom domain for Amplify, it creates an internal CloudFront distribution, in an internal AWS account. This distribution will be owned by the Amplify team, hence the reason you are unable to see the distribution in your account.

You will need to go through all your Amplify app's in your account, and make sure that these domain names are not configured anywhere else.

If they are not in your account at all, you can then follow this Knowledge Center article to prove ownership of your domain. Once done, you can open a support ticket to AWS and ask that this domain gets moved to your CloudFront distribution.

Hope this helps!

profile pictureAWS
SUPPORT ENGINEER
answered 2 years ago
0

Hi Bazzie, I have already created a case in aws support. I have pointed them all of my problems as I have pointed out here and I am still waiting for the support team to give me an answer. Thanks

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.

Guidelines for Answering Questions