How to download data from a cloud storage bucket to my VM instance?

0 votes
I am trying to download the entire data stored on my cloud storage bucket onto my Linux instance. I have tried using gsutil command but it is unsuccessful. Is there any workaround for this?
Nov 12 in GCP by anonymous
• 4,330 points

1 answer to this question.

0 votes

First of all, check the API access rights for your Compute Engine service account:

Ensure the following are set:

service account is set to the Compute engine default service account.

Access scope - set access for each API.

For instances, storage  is set to read-only

Then, just use gsutil cp (doc) or even gsutil rsync.

gsutil -m cp -r gs://<your-bucket>/* <destination_folder> 
answered Nov 12 by Sirajul
• 40,990 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer