Not AWS, but I use Cloud Functions in Firebase Hosting to redirect dynamic urls to static website paths.
Of course, in this case I have to use it, because Firebase Hosting is static, so this is the only way to handle dynamic urls if the simple rules of firebase.json are not enough.