Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to use a GitHub repository in AWS Lambda?

I have a repository where there is a fairly spacious structure that I would like to run in AWS Lambda:

my-repository:
  - helper.py
  - main.py

To do this, I want to use GitHub Action which will automatically update the function. Based on this documentation, we can update one file, but is it possible to update the entire repository at once? Or do I need to use container support for AWS Lambda?

https://github.com/marketplace/actions/aws-lambda-deploy

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The GitHub action you linked will zip the repository, or a list of files in the repository, creating a Lambda function deployment file, and then deploy that to AWS Lambda. That is the typical way to deploy a Lambda function. You don’t need to use container deployment in order to deploy a Lambda function consisting of multiple files.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading