Search code examples
amazon-web-servicesamazon-cognitoamazon-route53

AWS Cognito using a custom domain need A record


I am trying to set up a simple portfolio-building website, and I am using AWS Cognito. I am trying to use a custom domain, but when I press save changes I get the following error.

"Custom domain is not a valid subdomain: Was not able to resolve the root domain, please ensure an A record exists for the root domain. (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; Request ID: 26a22647-f70f-41e7-b552-3ee883351858)"

I'm not familiar with A records, if this is even the problem. How do I create them and what IP address should I use?

Thanks!


Solution

  • The Cognito endpoint will need to be a subdomain. It can not be the apex record of the DNS hosted zone.