Mounting a Cloud Storage Buckets as a File System on CentOS 7 Compute Engine Instances

Problem:

I need to mount a Google Cloud Storage Buckets to file system, and grant access to the web server.

 

Solution:

Use the Google Cloud Storage FUSE (gcsfuse) tool to mount a Cloud Storage bucket to your Compute Engine instance.

 

Steps:

Assumption:

  • I have a bucket named yctin-bucket
  • I want to mount this bucket to /cloud/yctin-bucket/
  • I was generated the Google Service Key, and stored into /src/gcloud_service_account.json

 

Mounting a bucket

 

To unmount the bucket

 

References:

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.