The housing could be normal rentals not conditional on keeping the job. I would guess that most Amazon facilities are located in urban areas. It would not be isolated mining town like in 1900s
Sure, as long as they can externalize this cost, they won't do this, but in the Bay Area Google determined it costs them less to to fight for housing projects and fund those, than pay the enormous overhead for getting their employees living there.
https://www.mercurynews.com/2021/03/04/google-backs-three-ba...