Connecting to Cloud Storage buckets

Google Cloud Storage is a flexible, scalable, and durable storage
option for your virtual machine instances. You can read and write files to Cloud
Storage buckets from almost anywhere, so you can use buckets as common storage
between your instances, Google App Engine, your on-premises
systems, and other cloud services.

If Cloud Storage buckets do not meet your performance and latency requirements,
you can use Cloud Storage in combination with other
instance storage options.

Note: Cloud Storage is an object storage system that does not have the same
write constraints as a
POSIX
file system. If you write data to a file in Cloud Storage simultaneously from
multiple sources, you might unintentionally overwrite critical data.

Follow the insert code samples to
write data and
read data, and include code in your
application that writes and/or reads a file from a Cloud Storage bucket.

Mounting a bucket as a file system

You can use the Google Cloud Storage FUSE tool to
mount a Cloud Storage bucket to your Compute Engine instance. The
mounted bucket behaves similarly to a
persistent disk even though Cloud Storage
buckets are object storage.