As long as it's disclosed beforehand, I don't see any problem with that. It's not like Amazon coerced the student into the contract: if they had a better funding opportunity they'd obviously have gone for it. This is the best deal they could get and Amazon was also obviously taking a risk: for every successful project, there are hundreds that don't get anywhere.