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
已提問 1 年前檢視次數 237 次
1 個回答
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
專家
已回答 1 年前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南