No worries for Amazon SDEs! The amazon software developer "outside contributions" agreement basically states that you are not allowed to do anything without approval anyways. /s
Seriously tho. When I was employed by them their agreements were by far most draconian compared to any other company I've worked for. Ridiculous.
Most companies I've worked did have a route to enable you to contribute to projects outside of work and still retain the rights. Tho the easiest route is to establish something within a domain you want to work and then state that on a "inventions and copyrights" pre-employment agreement. This will outright eliminate you from certain jobs but... That's the US for ya.