I am trying to use gcloud storage cp command for copying large files to gcp bucket. The command is working fine for smaller files. But it gives permission issue for larger files.
gcloud storage cp test.csv gs://bkt/testbucket/file.csv --project projectid
Completed files 0 | 0B
ERROR: (gcloud.storage.cp) User [serviceaccount.com] does not have permission to access b instance [bkt] (or it may not exist): serviceaccount.com does not have storage.buckets.get access to the Google Cloud Storage bucket. Permission 'storage.buckets.get' denied on resource (or it may not exist).
The error msg doesn’t make sense. But I have tried reducing the file size and it is working fine.