Creating a Folder and Uploading an Object in Cloud Storage

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Learning about storage and how it’s used is a pretty important step in the process of learning the cloud! In this hands-on lab, we will create a Cloud Storage bucket and folder, then upload an object to the folder and make it public.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a Bucket

In the lab, the correct project is already selected; but in the real world, if you have multiple projects, you would want to choose the appropriate project before starting.

  1. From Google Cloud console’s main navigation, choose Storage.
  2. Click Create a Bucket.
  3. Give your bucket a name—it has to be globally unique—and click Continue.
  4. Select Region as the location type and US-Central-1 as the region, then click Continue.
  5. Select Standard as the storage class, then click Continue.
  6. Under Access Control, select fine-grained, then click Continue.
  7. Under Protection tools, leave the option None selected.
  8. Expand DATA ENCRYPTION; we will leave the Use a customer-managed encryption key (CMEK) box unchecked.
  9. Click Create.
Create a Folder, Upload an Object, and Make the Bucket Public
  1. Once inside the bucket, click CREATE FOLDER.
  2. Give your folder a name, then click Create.
  3. Click on your folder name hyperlink to access the folder.
  4. Select UPLOAD FILES and upload a sample file into your folder.
  5. Click on Bucket details to move back into the bucket level and out of your folder.
  6. Highlight your bucket and click on the three dots on the right of your bucket, then click Edit access.
  7. Select ADD PRINCIPAL.
  8. Under New principals, type in allUsers.
  9. Select the Cloud Storage role, and then select Storage Object Viewer.
  10. Click Save, then click Allow Public Access.

Additional Resources

The Production team you are on needs you to create a new bucket with a folder in Cloud Storage. They are looking to access the objects within the folder almost every day. You have been tasked with creating this folder and uploading the first file.

Note: Members are now called Principals.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

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

Get Started
Who’s going to be learning?