Just go to your "my account" and click on "Affiliate Settings". A new page will open where you add your Amazon Id, usually ending with 20. Then click on "Apply Changes" at the bottom of the page. You're done!
Then while writing your pages click on the "Amazon" capsule and you can add the required products.