I have a question for the GCP connoisseurs among you.
I have an issue that I can upload to a bucket via UI and gsutil - but if I try to do this via python
df.to_csv('gs://BUCKET_NAME/test.csv')
I get a 403 insufficient permission error.
My guess at the moment is that python does this via an API and requires an extra role - to make things more confusing I am already project owner of the project of the bucket and compared to other team members did not really find lacking permissions for this specific bucket.
I use python 3.9.1 via pyenv and pandas '1.4.2'
Anyone had the same issue/ knows what role I am missing?
- I checked that I have in principal rights to upload both via UI and gsutil
- I used the same virtual python environemnt to read and write from bigquery to check that I can in principle use GCP data in python - this works
- I have the following Roles on the Bucket Storage Admin, Storage Object Admin, Storage Object Creator, Storage Object Viewer