Error creating Cognito User Pool Domain: InvalidParameterException: Domain already associated with another user pool

When I run the terragrunt.hcl with ‘terragrunt apply’ I keep getting errors Domain already associated with another user pool.

I have checked:

  1. My cognito domain is unique
  2. My cognito domain is created by the user I set the account_id setting
  3. Provided a certificate for the Cognito domain after I created it

Can anyone face the same issue and know any solutions? I appreciate your help!

I resolved it. I configured domain name in different file. I could not delete this topic but it can be deleted. Thank you!