I am trying to mount a bucket using gscfuse, and the command is unable to be run from a service account.
When I run gcloud auth list
, the service account is selected.
However, when I run the command gcsfuse testing_bucket_images "$HOME/mount-folder"
, I receive the error
daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: Mount: mount: running /usr/bin/fusermount: exit status 1
When I debugged the issue with this command gcsfuse --foreground --debug_fuse --debug_fs --debug_gcs --debug_http -o nonempty new_cool_bucket /home/ACCOUNT_NAME_TEMP/path
,
this is the response
mountWithArgs: mountWithConn: fs.NewServer: create file system: SetUpBucket: Error in iterating through objects: googleapi: Error 403: ACCOUNT_NAME_TEMP does not have storage.objects.list access to the Google Cloud Storage bucket. Permission 'storage.objects.list' denied on resource (or it may not exist)., forbidden
however, the ACCOUNT_NAME_TEMP is not the service account I am using. It is my google account. How can I run this command with the service account?