This has it backwards - lambda is only suitable for the cloud equivalent of shell scripts, anything more complex and it becomes an unmaintainable rats nest that cannot be debugged.
I know (think) you're half joking, but I wonder if you could abuse the hot-reload system to injected your function (assuming you don't want to eval strings) into some "lambda" module and run it.