Amazon shares hit a new all-time high, pushing its market cap above $3 trillion. The rally follows strong Q2 earnings and continued cloud growth at AWS.