No, you don't give your books or your rights to Amazon when you become a publisher and upload your ebooks to sell on their website. Amazon is a store not a publisher (they do, however, also have their own publishing company, but that's different).