S&P 500 hits record high on Amazon boost