globocom / gcloud-utils

Global package for Cloud Management in Python
https://gcloud-utils.readthedocs.io/en/latest/
Apache License 2.0
16 stars 23 forks source link

Add Google Cloud Functions support #12

Closed alexandreyy closed 4 years ago

alexandreyy commented 4 years ago

Create package to create, deploy and execute Google Cloud Functions.

Reference https://cloud.google.com/functions/docs/

monuelo commented 4 years ago

Hi! I'd like to work on this issue. :nerd_face:

monuelo commented 4 years ago

@alexandreyy I'm a little confused about the difference between creating and deploying functions. Can you explain me better?

alexandreyy commented 4 years ago

It`s the same process. :) Take a look at this reference for Python: https://cloud.google.com/functions/docs/quickstart Include a validation of the function, if possible: check if the function exists in the package.

monuelo commented 4 years ago

Great, that's what I thought. Okay, I'll check this. :)

monuelo commented 4 years ago

@alexandreyy Just one more thing. To indicate which function will be created, should I indicate the path of the function? Or is there another way you prefer?

alexandreyy commented 4 years ago

@hericlesme Yes. We can indicate the path as an optional argument . The default should be the current path. And the path should be the directory path of the script main.py.