问题
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 forexample.com
- If you enter
auth.qa.example.com
, you need an A record forqa.example.com
- If you enter
foo.bar.qa.example.com
you need an A record forbar.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