0
0
GCPcloud~3 mins

Creating buckets and uploading objects in GCP - Why You Should Know This

Choose your learning style9 modes available
The Big Idea

What if you could save hours of tedious uploading with just a few simple commands?

The Scenario

Imagine you have a folder full of photos on your computer, and you want to share them with friends online. You decide to manually create a new folder on a cloud storage service and then upload each photo one by one through a web browser.

The Problem

This manual process is slow and frustrating. Uploading files one at a time wastes time, and if you have hundreds of photos, it becomes overwhelming. Mistakes happen easily, like uploading to the wrong folder or missing files. It's hard to keep track and organize everything properly.

The Solution

Creating buckets and uploading objects programmatically lets you automate this work. You can create storage spaces (buckets) and upload many files (objects) quickly with just a few commands. This saves time, reduces errors, and keeps your files organized automatically.

Before vs After
Before
Open browser > Create folder > Upload file > Repeat for each file
After
gsutil mb gs://my-new-bucket
gsutil cp *.jpg gs://my-new-bucket
What It Enables

It enables fast, reliable, and organized storage of your files in the cloud, ready to be accessed anytime from anywhere.

Real Life Example

A photographer uses a script to create a new bucket for each client and uploads all photos from a shoot automatically, saving hours of manual work and avoiding lost files.

Key Takeaways

Manual uploads are slow and error-prone.

Automating bucket creation and uploads saves time and reduces mistakes.

This makes managing cloud storage easy and efficient.