Can I use google cloud storage inside this?
Closed this issue · 3 comments
I would like to store few files on the google cloud storage
as I am using cloud function python
is it possible?
Any valid python code will work. On a side note, you would need to make sure that the service account that is deployed with the cloud function has storage access - which I assume that the default account has, so it should work OOTB.
And as always i would recommend everyone to actually just try things out and test, I have not tried this specific case myself. There is plenty of sample code available - the docs here (https://cloud.google.com/storage/docs/uploading-objects#storage-upload-object-python) do shows you how to do it, with the full examples source code here: https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/storage/cloud-client/snippets.py#L133. Please try it out yourself and see it it works for you.
@MartinSahlen Yes it did work without any issues