Amazon reported earnings that saw net sales come in stronger than Wall Street forecasts. The stock climbed 6% in after-hours trading.