How you can run the same Python distribution on EKS and AWS Lambda (using UV)

I recently tackled a problem that ate up a few hours of my day, and I'm documenting the solution for anyone who hits this same wall in the future. The Setup I'm doing my development with uv , and I was working on a microservice that serves an ML model via API. It's a FastAPI application running at on an EKS cluster in Kubernetes. Everything was working great. Then came another requirement: we…