AWS lightens the losses at Amazon