How to access google drive from compute engine

10,752

Solution 1

I recommend using Google Cloud Storage instead of drive. Drive is a more consumer oriented (and expensive) product. Its extra features are geared towards file management and not moving around data blobs which is what you would need when programming.

If you really want to use it you can drive, you can find the API documentation at https://developers.google.com/drive/

Drive is NOT part of the Google Cloud Platform and there are no special instructions or integrations other than the network pricing.

Solution 2

As far an I can tell, there is no out of the box way to do it from a compute engine except using 3rd party tool like gdrive, it can be used in Linux, Windows CEs.

Solution 3

As far as I can tell, there's no official solution. However, there is an open-source project, google-drive-ocamlfuse, which allows you to mount Google Drive onto your VM without much effort. Perform the installation as described on the main page, and then follow these steps for headless usage and authorization.

Share:
10,752

Related videos on Youtube

Dean MacGregor
Author by

Dean MacGregor

Updated on October 09, 2022

Comments

  • Dean MacGregor
    Dean MacGregor over 1 year

    I haven't used GCE before but was planning on using it for some CPU bound R scripts.

    I see that on the network section of pricing it says there is free egress and ingress with google drive. I don't see any documentation on how to access my google drive from within a GCE. Is there documentation on this that someone can point me towards?

  • Dean MacGregor
    Dean MacGregor about 9 years
    "there are no special instructions or integrations" that's what I needed. Since, as you mention, there is special network pricing for drive I assumed there was a special way to access it.
  • Dean MacGregor
    Dean MacGregor about 9 years
    So I should just access it the same way I would from home right?
  • D. A.
    D. A. about 5 years
    Does anyone know if the 2TB I pay for with Google Drive is available through GCE? Or will I also be charged for, like, 100GB through that system?
  • Stephen Weinberg
    Stephen Weinberg about 5 years
    Pricing is completely separate. GCS charges by number of bytes saved in GCS and Drive charges depending on the maximum you are allowed to save in Drive. Free Drive space cannot be used for GCS.