Configure Lambda with Container Images
Using Container Images to configure Lambda
Last updated
Was this helpful?
Using Container Images to configure Lambda
Last updated
Was this helpful?
Lambda container images allow you to package and deploy Lambda functions as Docker container images. By using container images, you can include custom libraries, runtimes, and dependencies that are not available in the standard Lambda execution environment. The process involves building the container image, storing it in Amazon Elastic Container Registry (ECR), and configuring Lambda to use the image for function execution.
Create and Build your Lambda code using DockerFile
. Refer to the AWS documentation for detailed instructions on how to build and test container Images.
To use container images with Lambda, your images must be stored in Amazon Elastic Container Registry (ECR). ECR provides a fully managed service to store your container images, which Lambda pulls to run your functions.
For detailed instructions on how to configure and use ECR with Lambda, refer to the DuploCloud ECR documentation.
In the DuploCloud Portal, navigate to Cloud Services -> Serverless.
Click the Lambda tab. The Lambda Function page displays.
Click Add. The Create a Lambda Function page displays.
In the Name field, enter the name of your Lambda Function.
In the Description field, enter a useful description of the function.
From the Package Type list box, select Image. For type Zip, see the Lambda Functions topic.
Optionally, enter an Image Configuration. Refer to the informational ToolTip ( ) for examples.
In the Image URL field, enter the URL of the image.
Click Submit. The Lambda function is created.
On the Lambda Function page, from the Name column, select the function you created.
From the Actions menu, click Console. You are redirected to the AWS Console.
Test the function using the AWS Console.