AWS was not available to developers within Amazon to use at any time before the day it was publicly launched. At least not on a broad basis, and none of the main Amazon.com services ran on it in 2007.
They did share some data centers, however. And I guess data centers are "infrastructure".
I was in a position to know this because I had my hands deep in the retail site as part of my job.