Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

Working with GCS using Cloud Shell

How to upload a file from the local machine into a google storage bucket from the cloud shell

1 Answers

Very interesting question 🙂

Unfortunately, you can’t do such thing, not directly at least. Cloud Shell is simply just a Linux machine hosted on GCP and it doesn’t have the ability to access your local computer’s storage.

What you can do instead, is uploading files from your computer to Cloud Shell, then use gsutil to push files to GCS bucket. Use the "three-vertical-dots" button and choose Upload File. You have 5 GB of persistent storage for using with Cloud Shell.

Or better, installing Google SDK on your computer and upload files to GCS directly from there :D.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?