AWS Keys in a BC66

I have a bunch of BC66 board and I can communicate with AWS IOT/ MQTT but I found out that I can not have the same key for every board, or the message gets dropped when 2 boards try and communicate at the same time. If I was going to make thousands of boards how can I go about setting each key for AWS. Can the software be set in the factory?