Make The Objects Public
For everyone to be able to see your website, you have to make it public.
- Open the newly created bucket by clicking on its name
- Click on Permission
- Click on Grant Access
- Write allUsers in the New principals field
- Click on Select a role under Assign Role
- Select Storage Legacy Object Reader from Currently used
- You can also search for it from the input box
- Click on Save, and then ALLOW PUBLIC ACCESS
Hosting a Static Website on Google Cloud Storage: Step-by-Step Tutorial
You have finally built the awesome portfolio website that all recruiters want. But now the question is, where to host it? Well, there are quite a few options for it, and object storage solutions like Google Cloud Storage and AWS S3 are some of the popular ones. You can host your static website in just a few steps using them.
Now what is object storage? It is simply one of the methods to store files which are called objects. It was created with cost-effectiveness in mind. Object Storage solutions are also generally called S3 compatible. So, Google Cloud Storage, AWS S3, Cloudflare R2, and Backblaze B2 are some of the S3-compatible storage solutions.
In this article, we will see how to deploy an awesome cat website on Google Cloud Storage. AsiaPlease note that you can only host static websites and not dynamic ones. But why? Simply because dynamic websites require a server.
Contact Us