I'm having some trouble with setting up AWS Cognito for my web app. Here's the situation: I host my domain through Cloudflare, and I've set up my web app on AWS. I have a certificate for my main domain and subdomains, including wildcards. I updated the CNAME DNS record in Cloudflare and made sure they are set to 'DNS only' (grey cloud). When I perform an nslookup using my ISP or Google's DNS resolver, everything works fine. However, when I try using AWS IPs, it times out. Additionally, I encounter an error when trying to create a custom domain in Cognito, stating 'invalidparameterexception: custom domain is not a valid subdomain: was not able to resolve a dns A record for the parent domain or domain parent is a top level domain.' It's been over 48 hours since I issued the certificate, and I'm not sure what I've done wrong.
1 Answer
Have you checked out the AWS help article on troubleshooting custom domains in Cognito? It might guide you through some common issues. Sometimes the DNS propagation can take a bit longer with different resolvers, especially with AWS.
Yes, I’ve looked it over. It's just puzzling since I can access my domain through other DNS resolvers without issues.