I am trying to write a new file (not upload an existing file) to a Google Cloud Storage bucket from inside a Python Google Cloud Function.
I tried using
google-cloud-storage
but it does not have the "open" attribute for the bucket.I tried to use the App Engine library
GoogleAppEngineCloudStorageClient
but the function cannot deploy with this dependencies.I tried to use
gcs-client
but I cannot pass the credentials inside the function as it requires aJSON
file.
Any ideas would be much appreciated.
Thanks.