Table of Contents (🔎 Click to expand/collapse)
Cloud Storage allows world-wide storage and retrieval of any amount of data at any time. You can use Cloud Storage for a range of scenarios including serving website content, storing data for archival and disaster recovery, or distributing large data objects to users via direct download. In this hands-on lab you will learn how to use the Cloud Console to create a storage bucket, then upload objects, create folders and subfolders, and make those objects publicly accessible.
- In the Cloud Console, go to Navigation Menu > Cloud Storage > Browser.
- Click CREATE BUCKET
There're the Bucket naming rules:
- Do not include sensitive information in the bucket name, because the bucket namespace is global and publicly visible.
- Bucket names must contain only lowercase letters, numbers, dashes (-), underscores (
_
), and dots (.
). Names containing dots require verification. - Bucket names must start and end with a number or letter.
- Bucket names must contain 3 to 63 characters. Names containing dots can contain up to 222 characters, but each dot-separated component can be no longer than 63 characters.
- Bucket names cannot be represented as an IP address in dotted-decimal notation (for example,
192.168.5.4
). - Bucket names cannot begin with the
"goog"
prefix. - Bucket names cannot contain
"google"
or close misspellings of"google"
. - For DNS compliance and future compatibility, you should not use underscores (
_
) or have a period adjacent to another period or dash. For example, "..
" or "-.
" or ".-
" are not valid in DNS names.
There are two way to upload objects into the bucket in Google Console:
- Drag your image to the Just Add Data Area of the Bucket details screen.
- Click Upload Files and choose files in your local machine.
Notice the object names must be unique only within a given bucket.
Follow steps below to create a publicly accessible URL for the object.
- Click the drop-down menu (three vertical dots).
- Select Edit Permissions from the drop-down menu.
- In the dialog that appears, click the + Add entry button.
- Add permissions and then click Save.