Ray Lee | 李宗叡
Learn or Die
Published in
Jun 8, 2024

# 前言

紀錄如何用 Domain 來命名 Google Cloud Storage Bucket

# 建立 Bucket

  • 到 Google Cloud Platform 的 console 頁面,選擇建立 bucket
  • bucket name 的部分,直接以 Domain 來命名,比如可以叫做 assets.learn-or-die.com
  • 此時會需要到 Google Search Console 來驗證 Domain,確定是 Domain 的擁有者之後,才能以此 Domain 作為 Bucket name

# Domain 驗證

  • 左上角輸入 domain
  • 輸入後,會跳出驗證畫面,如下
  • 到 DNS 服務的網站,新增 record
  • key:yourDomain
  • type:TXT
  • value:上圖中提供的 string
  • 新增完畢後,按下 驗證,即可完成
  • 驗證完畢後,就可以到 Google Cloud Storage 繼續建立 Bucket 的程序

--

--

Ray Lee | 李宗叡
Learn or Die

It's Ray. I do both backend and frontend, but more focus on backend. I like coding, and would like to see the whole picture of a product.