Unfortunately Amazon pays little taxes not because of trickery with tax loopholes, but mostly because by design companies only owe taxes on profits and Amazon has made (on net) very little profit to date.
Governments tax corporate revenue too, it's just that's called a sales tax.