Amazon's earnings were driven by a strong holiday season and its Amazon Web Services cloud division.