For this post, I will extend the AWS documentation for ‘Building a custom runtime’ by additionally using the AWS CDK in Python to deploy the Bash custom runtime for AWS Lambda. How to deploy a Lambda custom runtime using AWS CDK Follow the instructions below to deploy an AWS Lambda Function with a Bash custom runtime! Create a /handler folder with a bootstrap file AWS provides a bootstrap file that creates the custom runtime.