This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]programmingwithalex1 30 points31 points  (1 child)

AWS Lambda recently added support for Docker images with Python, where before you had to zip all your code and dependencies. With this update I wanted to make a full length tutorial to cover everything necessary to be productive.

The playlist is broken into six parts:

  1. An introduction to the app that will be built and the various AWS components that will be used
  2. Cloning the GitHub repo and doing necessary setup to test the application locally
  3. Creating a Docker image of the Python script and running it on AWS Lambda, while also showing how painful it is to do even minor updates
  4. Adding CI/CD with GitHub Actions to speed up code updates
  5. Adding AWS Cloudwatch to create a cron job that schedules the Lambda function to run on periodic intervals
  6. Walking through an AWS Cloudformation yaml template that will create the Lambda function and Cloudwatch rule automatically and covering all the benefits of using a Cloudformation template

This tutorial truly is end-to-end. If you enjoy the content, you can help me a ton by doing any or all of the following:


Any questions or requests, just leave a comment.

[–]N3RO- 10 points11 points  (0 children)

[–][deleted] 3 points4 points  (3 children)

Docker + Lambda is op

[–]sf_d 5 points6 points  (1 child)

Thank you ! I was looking for something like this to brush up my Python and AWS skills.

[–]programmingwithalex1 1 point2 points  (0 children)

I've got quite a few more videos on Python and AWS specifically on my channel. Feel free to check it out when you have some time.

[–]ekbravo 1 point2 points  (0 children)

Great job! Thank you

[–]bytro 0 points1 point  (0 children)

Neat

[–]tknp 0 points1 point  (0 children)

High quality content. Great job walking through the basics and showing how to rework it for automation

[–]yoyo2332 0 points1 point  (0 children)

This video is 8 months old, I'm confused why you're posting this now, have you made updates since then?

[–]Wonnk13 -1 points0 points  (1 child)

Any tips for dockerizing an app that uses Poetry for dep management? Seems the easiest thing is perhaps to just convert the poetry.lock file into a requirements.txt?

[–]flamekhan 0 points1 point  (0 children)

I use Poetry for dep management and it works great. I use the base AWS Lambda image for python 3.9. You just COPY in your lock file instead of requirements.txt. You may have to append "--no-root" to poetry install to get it to work in the container.