Amazon has big enough global footprint of offices all over the world that even if someone loses their visa they can easily relocate back to their own country and work on the same projects from any of the massive offices there. And this actually happens all the time. Folks in Amazon move around as needed across border. The idea of h1-b servitude does not hold much relevance for companies like Amazon who have built massive offshore centers in the last few years.