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, 2019 in GCP by anonymous
• 6,260 points
7,397 views

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> 


Hope it works!!

To find out more about Google Cloud, join Google Cloud training today.

Thanks!

answered Nov 12, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

0 votes
1 answer

How to add a PTR record to my VM instance on gcp?

If your VM instance uses the primary ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 59,230 points
1,890 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP