https://aws.amazon.com/blogs/aws/firecracker-lightweight-vir...
Another tip is if writing a http app etc Axum/Actix have Lambda shims.
I add a cli flag “—lambda” which enables the shim. That means I can run the app locally, in Kubernetes, ECS, Lambda with minimum effort. It also makes dev easier pretending lambda doesn’t exist.