Create AWS Lambda Function Using Docker Image - Hands on tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ค. 2024
  • In this video, we will learn how to create AWS Lambda function using a docker image and run docker container.
    Why do we need it?
    We will start by discussing some challenges that we face while creating Lambda functions using zipped archive.
    We will also discuss a blog post, which shows potential performance improvement of Lambda COLD start time for large packages.
    Timestamps:
    00:00 - Introduction, Discuss the issue
    04:08 - Outline the steps for the demo
    05:04 - Create Lambda function with Zip archive (see the issue)
    10:49 - Create Lambda function using Docker Image
    19:10 - Cleanup
    Hands on Demo:
    Zipped Version (and the issue)
    - Create a python function and zip archive with several dependencies.
    - The zip archive is over 50MB, the lambda console upload rejects it.
    - Upload to Amazon S3 and try to use to create the lambda function, which fails as expanded size exceeds 250MB
    Docker Image Version (and Success)
    - We will create a Docker image with dependencies,
    - Create Elastic Container Registry (ECR) Repository to host the image
    - Upload the image to ECR
    - Create a lambda function from this uploaded image (size approximately 301MB)
    - Test the Lambda Function.
    External Links:
    Deploy Python Lambda functions with container images - docs.aws.amazon.com/lambda/la...
    Blog post - Containers on Lambda - aaronstuyvenberg.com/posts/co...
    #aws #docker #lambda #devops #tutorials #tutorial #ecr
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น •