Amazon refusing to make a firm commitment doesn't mean you shouldn't work for them if you want a remote role. It means you should see that role as just one job in a long career that will contain many jobs. If Amazon decide they want everyone back in the office and you want to carry on working remotely, then you quit and find a new remote role.
Literally any company might decide that they'd like everyone back in the office, and make moves to make it happen, no matter what they might promise today. Your current employer could announce "Yeah, we know we promised, but things have changed so now we're unpromising." A promise from your employer means very little.
My career advice to anyone looking for a job is to find what you need now and to be prepared to find a new role when your needs change. The same is true if your needs remain the same and the company changes around you.