Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

connect vm to cloud storage gcp

$ export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s` 
$ echo "deb http://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list
$ curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

$ sudo apt-get update
$ sudo apt-get install gcsfuse

$ mkdir /path/to/mount

$ gcsfuse example-bucket /path/to/mount

$ ls /path/to/mount 
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #connect #vm #cloud #storage #gcp
ADD COMMENT
Topic
Name
4+2 =