ansible-collections / google.cloud

GCP Ansible Collection https://galaxy.ansible.com/google/cloud
https://cloud.google.com
GNU General Public License v3.0
99 stars 127 forks source link

Allow gcp_cloudfunctions_cloud_function to upload a local file #234

Open nkakouros opened 4 years ago

nkakouros commented 4 years ago
SUMMARY

Currently, only resources that are available at a google cloud storage or repo can be defined. However, the gcloud utility does have a --source flag that accepts local files.

ISSUE TYPE
COMPONENT NAME

gcp_cloudfunctions_cloud_function

ewypych commented 3 years ago

I'm afraid that API doesn't allow us to do that right now... https://cloud.google.com/functions/docs/reference/rest/v1/projects.locations.functions#CloudFunction

nkakouros commented 3 years ago

Couldn't that be implemented in code to compensate for the api? Is this a magic module limitation?