Back to Browse

Use Docker to Run AWS Lambdas (Python)

724 views
Mar 9, 2024
14:09

We'll cover testing AWS Lambdas locally using Docker. Everything will be done with the Docker and AWS CLI. We will then go over the results in the AWS Management console. Timestamps 00:00 - Intro 00:23 - Lambda Python source code 01:25 - Create Dockerfile 03:38 - Build Docker image 05:00 - Run the Docker image (runs the Lambda locally) 06:16 - Invoke the Lambda by using curl (the Windows command is: Invoke-WebRequest -Uri "http://localhost:9000/2015-03-31/functions/function/invocations" -Method Post -Body '{}' -ContentType "application/json") 07:56 - Connect Docker to Amazon ECR 09:45 - Upload the Docker image to ECR 11:00 - Create a new Lambda using the ECR image 12:36 - View results in the AWS Management console 13:47 - Outro

Download

1 formats

Video Formats

360pmp419.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Use Docker to Run AWS Lambdas (Python) | NatokHD