The first one doesn't work as written; it could just about work with hyphens ("A fueled-by-despair attempt") but it is unusual. Normally you would use the second one.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.