Template for building a Google Cloud Function
- gcloud for the deployment
- pyenv to manage virtual environments
- python-dotenv to handle environment variables
- run
make initto build your virtual environment - run
make deployto deploy your function to GCP
Place your code within the run function in main.py. The run function is the code that runs from the http endpoint for your Cloud Function. Place your code within the run function.
This must take a request argument and also it must include a return statement.