Step-by-step guide to setting up a CI/CD pipeline that automatically deploys a Python AWS Lambda function using GitHub Actions and the Serverless Framework. Covers creating the Lambda function with the Serverless CLI, bundling Python dependencies (including non-pure-Python packages like scikit-learn) via the serverless-python-requirements plugin and Docker, writing the GitHub Actions workflow YAML, and securely storing AWS IAM credentials as GitHub repository secrets.

5m read timeFrom philschmid.de
Post cover image
Table of contents
TL;DRRequirementsCreate AWS Lambda functionAdd Python RequirementsDeploy Function manuallyCreate Github ActionsAdd secrets to your repositoryGrab a coffee and enjoy it