Deploying AWS Lambda Container Images
Learn how to package AWS Lambda functions as container images with AWS CDK and Python.
AWS Lambda is one of the most commonly known services from AWS. As per the AWS website, it is a compute service that lets you run code without provisioning or managing servers. You will only run your code when needed and it scales automatically from few requests per day to thousands per second.
You can write your code for AWS Lambda using different runtimes. As of the time of writing the supported runtimes are: Node.js, Python, Java, C#, Ruby, Go, and PowerShell.
Recently, AWS announced support for container images and you can now package and deploy Lambda functions as container images. One of the advantages is that this allows developers to build and deploy larger workloads that rely on sizable dependencies.
Additionally, AWS is providing base images for the following supported Lambda runtimes (Python, Node.js, Java, .NET, Go, Ruby). AWS also states that will maintain and regularly update these images, in addition, to release an AWS base image when any new managed runtime becomes available.
In this post, we will explore how to package AWS Lambda functions using container images. We will use Python as the programming language for the AWS Lambda function and we will take advantage of the AWS…