AWS – AWS Lambda now supports custom runtimes on Amazon Linux 2
You can now develop your AWS Lambda functions using custom runtimes on Amazon Linux 2, the latest generation of Amazon Linux. You can read more about the custom runtimes in the AWS Lambda documentation.
Read More for the details.