This doesn't mean that Amazon only uses AWS products, though. Amazon continues to use e.g. Akamai for static content hosting for some use-cases, in addition to using CloudFront for other use-cases, and other products beyond that.
Amazon also uses third-party services. For example, while Amazon has long been using Chime internally for IM, chat, and voice/video calling (Chime being the AWS solution for those things), they recently announced a partnership with Slack [1]. To summarize, Amazon will deploy Slack and use it for chat, while Slack will deploy Chime and use it for voice/video calling. I believe that Slack has been running on AWS since its founding [2]. I would hazard a guess that an undertone of the agreement is that Chime will continue focusing on its strength (which is voice/video calling for organizations) and probably not invest a lot in the chat features where Slack is already strong, and vice versa.
All that being said, certainly not everything runs on AWS across all of Amazon, which is a big company, with a host of acquisitions like Zappos, Twitch, Whole Foods, etc., that come with their own legacy or custom infrastructure.
But bread-and-butter software teams at Amazon all typically run on AWS.
[1] https://www.businesswire.com/news/home/20200604005766/en/AWS...
[2] https://aws.amazon.com/solutions/case-studies/slack/#:~:text....