- Newest
- Most votes
- Most comments
Your evidence does point to a CloudFront distribution in an AWS-owned account that still holds the hostnames. Here's what you can check yourself and how to escalate.
1. Can a Cognito-managed distribution keep the alias after the domain is deleted?
Cognito custom domains are served by a CloudFront distribution in an AWS-managed account. Deleting the domain should eventually remove that distribution and free the alias. Your observations suggest that distribution still exists:
- ACM
InUseBystill lists it. - CloudFront reports a CNAME conflict.
Before treating it as orphaned, rule out a live Cognito domain elsewhere. describe-user-pool-domain only checks the region you call it in:
- Check every region and every account that might have used these hostnames, including old sandbox and dev accounts. A user pool in another region, or another pool in the same account, can still own the domain.
- Check other services that create AWS-managed CloudFront distributions in all regions and accounts: API Gateway edge-optimized custom domains, AWS Amplify Hosting custom domains, AppSync custom domains, and Lightsail distributions.
- Check for wildcards. An alias like
*.example.comon any distribution can also conflict.
2. Self-service: identify who holds the alias
CloudFront's ListConflictingAliases API is built for this:
- In one of the affected accounts, create a temporary CloudFront distribution that uses the existing ACM certificate (in us-east-1) covering the hostname. It doesn't need the alias attached.
- Run:
aws cloudfront list-conflicting-aliases \ --distribution-id <temp-dist-id> --alias auth.example.com - The response shows the conflicting distribution ID and account ID, partially masked. That's enough to tell whether the holder is one of your accounts or an AWS service account. If it's one of yours, you can move the alias yourself with
AssociateAlias.
If the holder is an AWS-managed distribution, you can't release it yourself.
3. What InUseBy tells you
ACM lists the resources currently using the certificate. A service-managed distribution in InUseBy most likely means the distribution still exists and is still bound to the certificate. That's consistent with the alias still being held, not a separate certificate-cleanup issue. When the distribution is deleted, the entry normally disappears. Note that issuing a new certificate won't release the alias.
4. Escalation
The owner of the distribution has to fix this, and here that's Cognito, which manages it. Open a support case under Cognito and ask them to bring in CloudFront if needed. Include:
- The
ListConflictingAliasesoutput (masked IDs are fine) - The distribution ARNs from ACM
InUseBy - The user pool IDs, regions, and dates of the earlier Cognito domains, if you know them
- The request IDs of the failed
CreateUserPoolDomaincalls
AWS will likely ask you to prove you own the domain, usually by adding a TXT record they specify, before they release the alias. Have DNS access ready.
Relevant content
asked 6 years ago
asked 3 years ago

We checked
auth.uat.phdcompass.netacross 17 enabled AWS regions in our management, dev, UAT, and prod accounts, plus the accessible hub account. We found no live Cognito custom domain for it. We also found no matching domain in the other checked services or visible CloudFront distributions.A fresh
CreateUserPoolDomainattempt in UAT failed with CloudFront 409: “One or more of the CNAMEs you provided are already associated with a different resource.” The underlying CloudFront request ID wasdafd0a73-02e6-4ae2-b9c7-90dd95ad9db2.We created a temporary disabled CloudFront distribution with the UAT certificate and called
ListConflictingAliases. It returned one exact match:auth.uat.phdcompass.net, distribution*******GSG7C2I, account******493081. ACM’sInUseByidentifies the full reference asarn:aws:cloudfront::455458493081:distribution/E2MSNDMGSG7C2I. The temporary distribution was then deleted. CloudFront documents that this API masks the IDs and reports conflicting aliases. (docs.aws.amazon.com)CloudTrail records a successful deletion of the UAT Cognito custom domain from user pool
eu-west-1_sylhhANCDon September 1, 2026, at 18:04:03 UTC+02:00 (request ID91850a2e-82ba-4da1-9791-e8da427fc2fa). Subsequent creation attempts, including this one, have failed with the alias conflict. Please ask Cognito and CloudFront to inves