- Newest
- Most votes
- Most comments
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:
-
Double-check that you've removed any previous CloudFront distributions or other AWS resources that might be using this domain.
-
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. -
If the conflicting resource is in another of your AWS accounts, you'll need to remove the alias from that distribution first.
-
If you've recently acquired the domain or transferred it, wait 24-48 hours as sometimes there can be a delay in propagation.
-
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
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
