Staying one year or five years is not important. It is important that you feel part of the team and valued.
If I read between the lines, you sound stressed (for whatever reason). You might have been reading too much into the firing/layoff. You might have an unrealistic expectation of the performance required out of you.
In Amazon, you would spend a lot more time interacting with teams that just writing code. The interdependencies between the teams are insane and depending on the level and your team, a lot of work would look ad-hoc and not well planned.
Feel free to DM me if you want to talk about it separately.