I have a flask project setup like this
- RX(parent directory)
– app.py
– init.py
– package.json
– requirements.txt
– src folder(some code)
– serverless.yml
Inside my serverless.yml, I have
service: RX
package:
individually: true
exclude:
- ./**
include:
- __init__.py
- requirements.txt
- package.json
... some other sections to setup wsgi (for flask)
When I deploy this to lambda and export it to a zip, I don’t see my source code files i.e app.py, src folder and all.
When I do serverless package from my terminal, I see the same zip that I download from lambda - without the source code. How can I package my application so that the source code also is included in the zip?
Since the source code is not there, the endpoints are not there and hence I am unable to hit those.