Amazon’s strong cloud sales help power revenue gains