That doesn't really make sense. AWS is very profitable [1]. That means that whatever the amount of money they put into engineering, their customers pay, and then some.
As for the customers, very few of them operate at a scale that requires the monumental amount of engineering required to replicate the whole of AWS with its many dozens of services.
[1] https://www.seattletimes.com/business/amazon/amazon-reports-...