Exposing a Public Website using Cloud Storage | Scribe

    Exposing a Public Website using Cloud Storage

    • Hafeez Baig |
    • 18 steps |
    • 54 seconds
    information ordinal icon
    Refer to this guide to learn how to create an Object Storage in GCP\ <https://scribehow.com/shared/Playing_with_Object_Storage_in_GCP__Cloud_Storage__nEbsQl7pQ02uoOi7v9IeZA>
    1
    Sign in into the **Google Cloud Platform**
    2
    Type "**Cloud Storage**" in the search bar and click on the **Cloud Storage** option
    information ordinal icon
    **What is Cloud Storage?**\ \ Cloud Storage is an online service that allows users to store, access, and manage data over the internet. It offers scalable and durable storage solutions, ensuring data is accessible from anywhere and protected through encryption and access controls. In Google Cloud Platform (GCP), it's called Google Cloud Storage, providing a secure and flexible way to store large amounts of unstructured data, such as files, backups, and media.
    3
    **Buckets** wizard will open, click on the Name "**my-in28minutes-bucket**"
    4
    **my-in28minutes-bucket** wizard will open, click on the **PERMISSIONS** tab
    5
    Scroll to the **Access control** section and here click on the **SWITCH TO UNIFORM** button to change the access control type
    6
    **Edit access control** wizard will open, select the option **Uniform**
    7
    Click on the **SAVE** button
    8
    Scroll to the **Permissions** section and click on the **GRANT ACCESS** button
    9
    On the right side **Grant access to "my-in28minutes-bucket"** wizard will open, scroll to the **New principals** text input field and type **allUsers**
    10
    Scroll to the **Select a role** dropdown section and select the option **Storage Object Viewer** **Note:** You can select any role as per your requirements.
    information ordinal icon
    **What is Role: Storage Object Viewer?**\ \ In Google Cloud Platform (GCP), the "Storage Object Viewer" role is an Identity and Access Management (IAM) role that grants read-only access to objects in Google Cloud Storage buckets. Users or service accounts with this role can view and list objects within the buckets but cannot modify or delete them. This role is useful for providing access to stored data without allowing changes, ensuring that users or applications can retrieve information while maintaining data integrity.
    11
    Scroll the page and click on the **SAVE** button
    12
    **Are you sure you want to make this resource public** wizard will open, click on the **ALLOW PUBLIC ACCESS** button
    13
    Scroll to the **Public Access** section, here you can see that the public access to the internet is enabled
    14
    Click on the **OBJECTS** tab
    15
    Click on the Name **index.html**
    16
    Scroll to the Public URL section and click on the **Copy to clipboard** icon
    17
    Open a new tab in any browser and paste the copied URL