AMZN is aggressively investing in AI, custom chips, and open-sourcing its software stack to defend its moat against rivals ...