I'm trying to deploy several Cloud Functions which are all in the same repository but in different python files.
Basically, I have those two functions
my_repo
- function_1_folder
- function_1.py
- requirements.txt
- .gcloudignore
- function_2_folder
- function_2.py
- requirements.txt
- .gcloudignore
Inside function_1.py I have function_1() which I want to deploy to my cloud function called function1 (note there is no underscore here), and same for function_2.
I go to function_1_folder and I have specified an entry point (--entry-point function_1) but I get a "missing main.py" error.
How can I specify both python filename and function name (if possible) ? Will gcloud also deploy the requirements.txt which is needed to install the packages my function depends on ?
Thank you