hands-on lab

Deploying AWS Lambda Functions With Container Images

Up to 45m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

AWS Lambda functions require deployment packages to deploy your code. The most common way to create a deployment package is to use a ZIP file, but developers can also use container images to deploy their Lambda functions.

AWS provides base images for Lambda functions that you can use to create your container images. In this lab, you will learn how to create a container image for an AWS Lambda function and deploy it to AWS Lambda. You will also learn how to update the Lambda function with a new container image.

Learning objectives

Upon completion of this beginner-level lab, you will be able to:

  • Build and publish a container image to Amazon Elastic Container Registry (ECR)
  • Deploy an AWS Lambda function using a container image

Intended audience

  • Cloud Architects
  • Software Engineers


Familiarity with the following will be beneficial but is not required:

  • Docker
  • AWS Lambda
  • Amazon Elastic Container Registry (ECR)

The following content can be used to fulfill the prerequisites:

Environment before

Environment after

About the author
Jun Fritz, opens in a new tab
Cloud Labs Developer
Learning paths

Jun is a Cloud Labs Developer with previous experience as a Software Engineer and Cloud Developer. He holds the AWS Certified Solutions Architect and DevOps Engineer Professional certifications. He also holds the AWS Certified Solutions Architect, Developer, and SysOps Administrator Associate certifications. 

Jun is focused on giving back to the growing cloud community by sharing his knowledge and experience with students and creating engaging content. 

Covered topics
Lab steps
Logging In to the Amazon Web Services Console
Connecting to the Virtual Machine using EC2 Instance Connect
Building an AWS Lambda Container Image