Source: Former AWS employee. For the most part Amazon Retail doesn’t run on AWS infrastructure and doesn’t use AWS services. I’m simplifying a little bit. But Amazon (the company) runs two sets of infrastructure “AWS” and “CDO” (or COE I don’t remember).
It’s an old wives tale that AWS came out of “excess capacity” from Amazon Retail.