Creating and managing google cloud storage for google Virtual machines

0 0
0 0
Read Time:1 Minute

Working with cloud shell and Gcloud.

In this guide let us see how to work with GCloud config and cloud storage by creating a cloud bucket and uploading a file to the bucket.



To list the current config.

$ gcloud config list

google129866@6fbfd8bb66b05a0d:~$:~$ gcloud config list
[component_manager]
disable_update_check = True
[compute]
gce_metadata_read_timeout_sec = 5
[core]
account = google129866_babin@6fbfd8bb66b05a0d
check_gce_metadata = False
disable_usage_reporting = False
project = babin-gcp-6fbfd8bb66b05a0d
[metrics]
environment = devshell
Your active configuration is: [cloudshell-27170]
To list more information about config use --all.

To list more information about the config use list all.

google129866@6fbfd8bb66b05a0d:~$:~$ gcloud config list –all

Managing cloud storage data by creating a file and upload to bucket

$ gsutil mb gs://my-bucket-456

google129866@6fbfd8bb66b05a0d:~$:~$ gsutil mb gs://my-bucket-456
Creating gs://my-bucket-456/...google129866@6fbfd8bb66b05a0d:~$:~$ gsutil cp test.dat gs://my-bucket-456
Copying file://test.dat [Content-Type=application/octet-stream]...
- [1 files][ 19.0 B/ 19.0 B]
Operation completed over 1 objects/19.0 B.
google129866@6fbfd8bb66b05a0d:~$:~$

That’s it we have done with managing how to create a bucket and upload files to google cloud platform.

Creating and managing google cloud storage for google Virtual machines 1

About Author

Babin Lonston

Overall 14+ Years of experience in the IT field, currently working as a Senior Linux administration with Virtualization & Cloud. Being numismatist for a long time.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Leave a Comment

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

We promise not to spam you, and we don't usually send more than one email a week.

You have Successfully Subscribed!