Skip to main content

Command Palette

Search for a command to run...

Configure Cloud Storage Bucket for Website Hosting using gsutil (Solution)

Updated
1 min read
Configure Cloud Storage Bucket for Website Hosting using gsutil (Solution)
D

A passionate full-stack developer from @ePlus.DEV

Overview

  • Labs are timed and cannot be paused. The timer starts when you click Start Lab.

  • The included cloud terminal is preconfigured with the gcloud SDK.

  • Use the terminal to execute commands and then click Check my progress to verify your work.

Challenge scenario

  • You have an existing Cloud Storage bucket named qwiklabs-gcp-01-92c132ab20c5-bucket that contains the following files necessary for a simple static website:

    • index.html (The main landing page)

    • error.html (Custom error page)

    • style.css

    • logo.jpg

  • Currently, the bucket is not configured for website hosting. Your task is to update the configuration to make this website publicly accessible.

  • As of now, there is no need to create a load balancer or CDN to redirect the request to the cloud storage bucket.

Click Check my progress to verify the objective.

Configure a bucket for website hosting


Solution of Lab

Lab link: https://www.skills.google/games/6987/labs/43424

curl -LO raw.githubusercontent.com/ePlus-DEV/storage/refs/heads/main/labs/configure-cloud-storage-bucket-for-website-hosting-using-gsutil/lab.sh
source lab.sh

Tip & Tricks

Part 1 of 50

Quick and practical tips to help users optimize tasks, improve skills, and solve common problems effectively across various areas like tech, lifestyle, productivity, and more.

More from this blog

E

ePlus.DEV - Exploring Technology with David Nguyen

1231 posts

A passionate full-stack developer from VIETNAM.