Amazon (and Microsoft) already sues former cloud employees. The question is not "is this enforceable?". The real question is "can you afford the legal fees?".
'Amazon is suing a cloud employee who left for Google, rekindling the debate over non-compete agreements' https://www.cnbc.com/2020/06/11/aws-case-against-worker-who-...