I’m not sure I understand this argument. Anything that runs in a lambda can also be run outside of a lambda. You just need to give yourself a way to invoke it or access it.

One setup I’ve used with a previous client was deploying many FastAPI lambdas, wrapped in Mangum. You can even in the same code base expose both. This way, you can deploy to a container and a lambda without changing any code.

In one case, we used APIGWv2 to give the lambda an HTTP endpoint, in the other, it’s the container that provides it. You can throw in IPv6 support by having a CF distro in front of both.