Passive income is a return on equity. Not 'an ec2 instance that makes money'.
Honestly, I've found the return I've gotten on various endeavors to be pretty baffling. Wholly dominated by external factors as far as I can tell, many of which are themselves dominated by random contacts. My most profitable projects have been totally random things I put very little work into, and I could not have predicted they'd be the ones to take off.