The code for the AWS billing system must be glorious. There are so many ways to pay for things, changing constantly, with an enormous number of accounts and even a number or ways to get credits back due to outages, customer support, or discount codes. And they have to account for internal Amazon use too. And bugs can really only be caught by people reimplementing parts of the system to make sure they get the same results.