Skip to content
Advertisement

Tag: google-cloud-storage

How to link static folder in Google app engine with a storage bucket

Created a new python Flask app-engine python project and want to use the static files from Google cloud storage. I am using this yaml.file: Where in the app engine do you link to storage https://storage.googleapis.com/<your-bucket-name>/static/ with /static in the app-engine? It is not clear from the documentation. Answer You can’t use file stored on Google Cloud Storage as static folder

How to combine multiple files in GCS bucket with Cloud Function trigger

I have 3 files per date per name in this format: ‘nameXX_date’, here’s an example: ‘nameXX_01-01-20’ ‘nameXY_01-01-20’ ‘nameXZ_01-01-20’ where ‘name’ can be anything, and the date is whatever day the file was uploaded (almost every day). I need to write a cloud function that triggers whenever a new file lands in the bucket, that combines the 3 XX,XY,XZ files into

Uploading file with python returns Request failed with status code’, 403, ‘Expected one of’,

blob.upload_from_filename(source) gives the error raise exceptions.from_http_status(response.status_code, message, >response=response) google.api_core.exceptions.Forbidden: 403 POST >https://www.googleapis.com/upload/storage/v1/b/bucket1-newsdata->bluetechsoft/o?uploadType=multipart: (‘Request failed with status >code’, 403, ‘Expected one of’, ) I am following the example of google cloud written in python here! I used gsutil to upload files, which is working fine. Tried to list the bucket names using the python script which is also working fine. I

service account does not have storage.objects.get access for Google Cloud Storage

I have created a service account in Google Cloud Console and selected role Storage / Storage Admin (i.e. full control of GCS resources). gcloud projects get-iam-policy my_project seems to indicate that the role was actually selected: And documentation clearly indicates that role roles/storage.admin comprises permissions storage.objects.* (as well as storage.buckets.*). But when I try using that service account in conjunction

Advertisement