Resources:
  CognitoUserPoolDomain:
    Type: AWS::Cognito::UserPoolDomain
    Properties:
      Domain: ${self:custom.domains.userPool}
      UserPoolId: !Ref CognitoUserPool