Cognito own domain name required A Record

半城伤御伤魂 提交于 2020-03-21 12:07:28

问题


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.


回答1:


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



回答2:


A web domain that you own. Its root must have a valid A record in DNS.

In simplified terms, if your domain is example.com then the root -- example.com -- needs to actually be configured for a web site before you continue. The specific value of the A record is not relevant to Cognito, since that would depend on how you choose to set up the site... but Cognito requires it to be there.




回答3:


It seems that trying to use a subdomain with too many dots causes this error.

This works:

auth.example.com

This does not:

dev.auth.example.com

Also if you remove and re-add the same domain name this seems to cause an error. Changing to a different domain works.

I added a request to fix this to the #awswishlist https://awswishlist.com/




回答4:


I was using

authdev.mycompany.com

and had to create an A record(using the elastic ip) in the root domain which is

mycompany.com.



来源:https://stackoverflow.com/questions/51249583/cognito-own-domain-name-required-a-record

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!