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

0

Hi,

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

That error came up when i tried to add a CNAME (custom domain name) to a Cloudfront distribution. There is a absolutely no chance that there is anything related to that domain on the account in any zone. I see that there are several other tickets like mine and in some of them answer is that anybody can create CNAME with any domain and exactly that error will come up. I also noted that the domain was in AWS a few years ago when managed by someone else. So i presume that a cloudfront distribution is still in someone's AWS account and that stops me add it as a CNAME although I even have the domain in the same account on ROUTE 53. Is there a way out ? Or cloudfront is banned for that domain until someone somewhere deletes his Cloudfront distribution?

bgbs
posta un anno fa237 visualizzazioni
1 Risposta
0

The following command may be used to check if CNAME is being used.
If the domain is being used outside of your control, you would not be able to use that domain.

aws cloudfront list-conflicting-aliases \
  --distribution-id YYY \
  --alias 'www.example.co'

https://repost.aws/knowledge-center/resolve-cnamealreadyexists-error

profile picture
ESPERTO
con risposta un anno fa
  • I have a similar issue, and this command won't work for me, because I've not been able to deploy cloudfront at all, given the "conflicting" CNAME which apparently exists some where.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande