Amazon was, in its entire history as a public company, profitable in every single quarter, except 5 (!). So no, they never spend all their money on growth (they did spend a lot so but never in unsustainable ways, which is the key here). Using Amazon as an example to spend everything on growth, and profits will come, is fundamentally wrong.