Error: creating Cognito User Pool Domain (dcv-portal-dev-auth): InvalidParameterException: Domain already associated with another user pool.with module.authentication.aws_cognito_user_pool_domain.main,
│ on modules/authentication/main.tf line 43, in resource "aws_cognito_user_pool_domain" "main":
│ 43: resource "aws_cognito_user_pool_domain
However, there is no aws_cognito_user_pool_domain with name dcv-portal-dev-auth
When I ran into this, it was due to needing to define a unique name for the project. I believe the environment + project name has to be unique across all of AWS so using the defaults fails.
Error: creating Cognito User Pool Domain (dcv-portal-dev-auth): InvalidParameterException: Domain already associated with another user pool.with module.authentication.aws_cognito_user_pool_domain.main, │ on modules/authentication/main.tf line 43, in resource "aws_cognito_user_pool_domain" "main": │ 43: resource "aws_cognito_user_pool_domain
However, there is no aws_cognito_user_pool_domain with name dcv-portal-dev-auth