You might want to try Cloudflare Workers instead. (disclaimer: I work at Cloudflare)
Do workers somehow operate inside your AWS stack via distributions of CloudFront? If not, that's probably not going to work, we have so much in S3, etc.
But, if that assumption is incorrect, can you point me to a document that suggests a transition path?