How many pages per product can I put on my site without spamming?

I saw many site creating dozen of pages per product with different content, but is it allowed by search engines? I am not planning to create as many

I am thinking about 2 or 3 pages per product to target different keywords with unique content on each article.

Do you think it will work?