This repository provides an image-based AWS Lambda template that gives you an efficient method to bootstrap your AWS Lambda projects. It's designed to help you overcome the AWS Lambda's 250MB size limit, enabling the use of larger libraries such as pandas.
Before you can use this template, make sure to install the following on your local machine:
- justfile: A modern, user-friendly alternative to Makefile. You can install it from here.
- aws cli: The Amazon Web Services command line interface. It's used to create and update Lambda functions, as well as manage ECR repositories. You can install it from here.
- Replace AWS Info: Modify the AWS-related information in the
justfileto match your own AWS configuration. - Create Lambda: Execute
just createcommand in your terminal to create the Lambda function. - Trigger Lambda: Use
just invoketo trigger your Lambda function and check theoutput.txtfor results. - Code: Start coding in
main.pyand manage your dependencies usingrequirements.txt.
This template provides a workaround for AWS Lambda's 250MB size limit, which allows you to use larger libraries, such as pandas, in your AWS Lambda projects.
Contributions are always welcome! Feel free to improve this template and submit a pull request.
Happy coding!