Amazon shares rose 4.2% to $217.54, marking a month-high, despite tensions in the Middle East affecting its cloud operations. Other tech stocks also saw gains amid a recovering US stock market.