I have a couple of AWS Lambda functions. All of those functions use some common helper functions. I have placed these helper functions in a separate file called helper_functions.py
. I want to import this module in all of my AWS Lambda functions. I am unable to find a place to store this module (helper_functions.py
), so when I make a change in this module I don't have to change anything in my Lambda functions.
Some of the options I thought of are:
Uploading the module on AWS S3 and then loading it in each Lambda function in the start from S3 and using the functions. (if possible)
Writing some script (which I haven't figured out yet) that packages the module along with the Lambda functions' Python file in a zip and uploads it on AWS Lambda
Please suggest a better solution to manage the module and import it in a much more efficient way.