This feature add explicit depends_on to avoid this error:
Error creating Cognito User Pool Domain: InvalidParameterException: Custom domain is not a valid subdomain: Was not able to resolve the root domain, please ensure an A record exists for the root domain
This feature add explicit depends_on to avoid this error: