A similar thing happened to me outside of Amazon. When the person I didn't get along with was made my manager I immediately went outside my reporting chain to find a place to transfer (though I considered quitting on the spot)
It didn't really work out though. New team was better but my past followed me and I let the whole experience get me down.
It didn't really work out though. New team was better but my past followed me and I let the whole experience get me down.