11
votes

How can I mount a Google Cloud Storage bucket as a disk or folder with a standard path such as ~/myBucket on a Google Compute instance?

Everything is in the same project with full access.

2

2 Answers

17
votes

With the new beta gcsfuse this is now possible.

gcsfuse myBucket ~/path/to/mount

https://cloud.google.com/storage/docs/gcs-fuse

1
votes

install gcsfuse on your virtual instance.

then

$ gcsfuse {{bucket name}} ~{{mounting path}}

https://medium.com/google-cloud/scheduled-mirror-sync-sftp-to-gcs-b167d0eb487a