We study some classes of singular perturbation problems where the dynamics of the fast variables evolve in the whole space obeying to an infinitesimal operator which is subelliptic and ergodic. We prove that the corresponding ergodic problem admits a solution which is globally Lipschitz continuous and it has at most a logarithmic growth at infinity.The main result of this paper establishes that as ǫ → 0, the value functions of the singular perturbation problems converge locally uniformly to the solution of an effective problem whose operator and data are explicitly given in terms of the invariant measure for the ergodic operator.