mineiros-io / terraform-aws-cognito-user-pool

A Terraform module to create and manage Cognito User Pools (Simple and Secure User Sign-Up, Sign-In, and Access Control) on Amazon Web Services (AWS). https://aws.amazon.com/cognito
Apache License 2.0
60 stars 45 forks source link

Cognito Custom Domain #69

Closed SAOPP closed 1 year ago

SAOPP commented 1 year ago

Hi!

Guys, I try to add to my pool custom domain, but any time faced with errors like: Error: Error creating Cognito User Pool Domain: InvalidParameterException: The domain name contains an invalid character. Domain names can only contain lower-case letters, numbers, and hyphens. Please enter a different name that follows this format: ^[a-z0-9](?:[a-z0-9\-]{0,61}[a-z0-9])?$ and Error: Error creating Cognito User Pool Domain: InvalidParameterException: Domain already associated with another user pool. The last answer it is if I use only subdomain without my main domain, this answer I understood affilated wif used internal aws domain (but any my subdomain is already used anyway).

But my question is, any examples for cognito custom domain?

SAOPP commented 1 year ago

My fail.