Hello,
I want to create functions that will be used by many other lambdas.
So, my project structure is like that:
backend
└── libs
├── test
├── helper.py
└── requirements.txt
└── services
├── test-api
├── .serverless
├── node_modules
├── app.py
├── package.json
├── package-lock.json
├── requirements.txt
├── serverless.yml
└── requirements.txt
└── serverless.common.yml
I want to share the code inside libs/serde/helper
on test-
api, so I installed serverless-python-requirements
And, I added to the serverless.yml
of test-api
:
plugins:
- serverless-python-requirements
.....
But, when running my lambda test-api
I receive the error:
ModuleNotFoundError: No module named 'libs'
So, how can I work with functions that are shared by multiple lambdas? What am I doing wrong?