Cognito own domain name required A Record

Marco picture Marco · Jul 9, 2018 · Viewed 7.4k times · Source

I am trying to assign an own domain name to a user pool for Cognito and facing an issue that it seems that an A Record is required.

In my case i have registered wildcard on my internet domain and am trying to follow the steps as mentioned in https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-add-custom-domain.html

Now i can create an A Record but have no clue where this A Record should point to. Any hints or tips are welcome :) It would be nice if this can be done without using CloudFront.

I tried CNAME's etc but as stated an A Record is required.

Answer

Nathan Dolan picture Nathan Dolan · Jun 3, 2019

It isn't the domain root that is relevant here. It's the subdomain that sits at the level below the one you enter.

  • If you enter auth.example.com, you need an A record for example.com
  • If you enter auth.qa.example.com, you need an A record for qa.example.com
  • If you enter foo.bar.qa.example.com you need an A record for bar.qa.example.com