In Aws Certificate Manager, I have created SSL certificate and add it to dns.
*.test.example.com
In Cloudfront, I have created a distribution With below CNAME
dev.test.example.com
Then, I can successfully access dev.test.example.com.
After that, I try to create Another distribution with CNAME uat.test.example.com using the same SSL certificate
But error occurs and cannot create the distribution.
com.amazonaws.services.cloudfront.model.CNAMEAlreadyExistsException: One or more aliases specified for the distribution includes an incorrectly configured DNS record that points to another CloudFront distribution. You must update the DNS record to correct the problem