GCP Console
Google Cloud Platform (GCP) allows you to build, deploy, and scale applications, sites, and services on a similar foundation as Google.
Image Credit : GCP Console – Google Cloud Console – Google Storage
The console gives: Easy admittance to all your Google Cloud Platform projects. Admittance to the Google Cloud Shell. A customizable task dashboard, with an outline of Google Cloud assets, charging, and a filterable action posting.
How do I open the Google Cloud console?
Figure out how to get everything rolling with Cloud Storage using the Google Cloud Console.
Costs that you cause in Cloud Storage depend on the assets you use. This quickstart ordinarily uses under $0.01 USD worth of Cloud Storage assets.
Before you begin
- Sign in to your Google Cloud account. If you’re new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud Console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Cloud project. Learn how to check if billing is enabled on a project.
Create a bucket
Buckets are the basic containers that hold your data in Cloud Storage.
To create a bucket:
- In the Google Cloud Console, go to the Cloud Storage Browser page.
-
Click Create bucket to open the bucket creation form.
-
Enter your bucket information and click Continue to complete each step:
-
Enter a unique Name for your bucket.
-
Do not include sensitive information in the bucket name, because the bucket namespace is global and publicly visible.
-
-
Choose Region for Location type and us-east1 (South Carolina) for Location.
-
Choose Standard for default storage class.
-
Choose Uniform for Access control.
-
Choose None for Protection tools.
4. Click Create.
-
That’s it — you’ve just created a Cloud Storage bucket!
To upload the image above into your new bucket:
-
Right-click on the image above and download it to your computer.
-
In the Cloud Storage browser page, click the name of the bucket that you created.
-
In the Objects tab, click Upload files.
-
In the file dialog, go to the file that you downloaded and select it.
After the upload completes, you should see the file name and information about the file, such as its size and type.
Download the object
To download the image from your bucket, click Download file_download.
Share the object
To allow public access to the bucket and create a publicly accessible URL for the image:
-
Click the Permissions tab above the list of files.
-
Ensure the view is set to Principals. Click Add.
The Add principals pane appears.
-
In the New principals box, enter
allUsers
. -
In the Select a role drop-down, select Cloud Storage > Storage Object Viewer.
-
Click Save.
-
In the Are you sure you want to make this resource public? window, click Allow public access.
To verify, click the Objects tab to return to the list of objects. Your object’s Public access column should read Public to internet. The Copy URL button provides a shareable URL similar to the following:
https://storage.googleapis.com/YOUR_BUCKET_NAME/kitten.png
To remove public access from the bucket and stop sharing the image publicly:
-
Click the Permissions tab above the list of objects.
-
Find the entry that has allUsers listed in the Principals column. Select the checkbox for that entry.
-
Click Remove.
-
In the Delete allUsers window, click Confirm.
In the Objects tab, you should see that the image no longer has a Copy URL button associated with it.
Create folders
-
In the Objects tab, click Create folder.
-
Enter folder1 for Name and click Create.
You should see the folder in the bucket with an image of a folder icon to distinguish it from objects.
Create a subfolder and upload a file to it:
-
Click folder1.
-
Click Create folder.
-
Enter folder2 for Name and click Create.
-
Click folder2.
-
Click Upload files.
-
In the file dialog, navigate to the screenshot that you downloaded and select it.
After the upload completes, you should see the file name and information about the file, such as its size and type.
Delete the objects
-
Click the arrow next to Bucket details to return to the buckets level.
-
Select the bucket.
-
Select the checkbox next to folder1.
-
Click on the Delete button.
-
In the window that opens, enter the folder name you want to delete.
-
Click Delete to permanently delete the folder and all objects and subfolders in it.
Clean up
To avoid incurring charges to your Google Cloud account for the resources used on this page, follow these steps.
- Open the Cloud Storage browser in the Google Cloud Console.
Open the Cloud Storage browser - Select the checkbox next to the bucket that you created.
- Click Delete.
- In the window that opens, confirm you want to delete the bucket.
- Click Delete.
How to create a service account in the GCP console?
A service account as a JSON file is required to authenticate site to perform GCP resource discovery and monitoring. To create a service account, follow the steps below:
- Log in to your GCP console and click on the hamburger icon at the top left corner.
- Hover on IAM & Admin > click on Service Accounts.
- Click on + Create Service Account.
- Provide Service Account Details including the account Name, ID, and Description. Click Create.
- Provide the role Viewer for the project. Learn more on the other permissions required to enable Site24x7 GCP monitoring.
- Click on + Create Key.
- Select the Key Type as JSON and click Create.