Amazon have a problem in that they hired AWS staff like mad starting from the Covid lockdowns and continuing until a year or so ago. Bringing everyone back to to office is a cheap way of reducing staff numbers.
Lots of people lacked perspective during Covid. My mother asked me if I though that the restaurants and pubs would ever open again. I said that they opened after the Black Death which killed one person in three (in many places one in two) in Europe so yes, they'll probably open again after Covid. Massive social and societal changes imposed upon us due to temporary external circumstances tend to be as temporary as the circumstances.