How do I auto generate products via attribute?
Assuming you are using Drupal 7, you've got a couple of options:


Commerce Migrate will let you create products as part of a migration. It's a bit more time consuming but it's repeatable and is very powerful.
You can use Commerce Bulk Product Creation to create products based off of fields in the UI. This gives the ability to create those products once and isn't repeatable.