google.cloud icon indicating copy to clipboard operation
google.cloud copied to clipboard

Allow gcp_cloudfunctions_cloud_function to upload a local file

Open nkakouros opened this issue 4 years ago • 2 comments

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
  • Feature Idea
COMPONENT NAME

gcp_cloudfunctions_cloud_function

nkakouros avatar Jun 04 '20 11:06 nkakouros

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

ewypych avatar Nov 04 '20 09:11 ewypych

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

nkakouros avatar Nov 04 '20 12:11 nkakouros