使用 Private Service Connect 建立私人執行個體

瞭解如何建立使用 Private Service Connect 的 Cloud Data Fusion 私人執行個體。


如要直接在 Google Cloud 控制台按照逐步指南操作,請按一下「Guide me」(逐步引導)

逐步引導


事前準備

  1. 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.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.

  4. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  5. Make sure that billing is enabled for your Google Cloud project.

  6. Enable the Cloud Data Fusion, BigQuery, Cloud Storage, and Dataproc APIs.

    Enable the APIs

  7. 取得建立網路連結和 Cloud Data Fusion 執行個體所需的角色和權限。詳情請參閱「必要角色和權限」。
  8. 確認您已建立虛擬私有雲共用虛擬私有雲網路。

使用 Private Service Connect 建立私人執行個體

  1. 前往 Cloud Data Fusion 的「Instances」(執行個體) 頁面,然後按一下「Create instance」(建立執行個體)

    建立執行個體

  2. 在「Instance name」(執行個體名稱) 欄位中,輸入新執行個體的名稱。

  3. 在「Description」(說明) 欄位輸入執行個體的說明。

  4. 從「Region」(區域) 下拉式選單中,選取要建立執行個體的 Google Cloud 區域。

  5. 從「Version」(版本) 下拉式選單中,選取 6.10 以上版本。

  6. 選取一個版本。

  7. 展開「Advance options」(進階選項) 並執行下列操作:

    1. 選取「Enable private IP」(啟用私人 IP)

    2. 在「Connectivity type」(連線類型) 部分,選取「Private Service Connect」

    3. 從「Network attachment」(網路連結) 下拉式選單中選取網路連結。

      如果沒有網路連結,請建立新的網路連結:

      1. 按一下「Create network attachment」(建立網路連結)
      2. 在「Name」(名稱) 欄位中,輸入網路連結的名稱。
      3. 從「Network」(網路) 下拉式選單中,選取虛擬私有雲或 Shared VPC 網路。
      4. 「Region」(區域) 欄位會自動更新,其值與 Cloud Data Fusion 執行個體相同。您無法編輯這個欄位。
      5. 在「Subnetwork」(子網路) 下拉式選單中,選取子網路範圍。

      6. 在「Connection preference」(連線偏好設定) 中,系統會自動選取「Accept connections for selected projects」(接受所選專案的連線) 選項。

        建立 Cloud Data Fusion 執行個體後,系統會自動將 Cloud Data Fusion 租戶專案新增至「Accepted projects」(接受的專案) 清單。

        注意:如果選取「自動接受所有專案的連線」,任何服務都能從子網路取得 IP 位址,因此安全性較低。

      7. 點選「建立」

      8. 在「Create instance」(建立執行個體) 頁面上,從「Network attachment」(網路連結) 下拉式選單中選取新建立的網路連結。

  8. 點選「Create」(建立)。執行個體建立程序最多需要 30 分鐘才能完成。

清除所用資源

如要避免系統向您的 Google Cloud 帳戶收取本頁所用資源的費用,請按照下列步驟操作。

刪除 Cloud Data Fusion 執行個體

請按照刪除 Cloud Data Fusion 執行個體一文的操作說明進行。

刪除專案

如要避免付費,最簡單的方法就是刪除您為了本教學課程所建立的專案。

如要刪除專案:

  1. In the Google Cloud console, go to the Manage resources page.

    Go to Manage resources

  2. In the project list, select the project that you want to delete, and then click Delete.
  3. In the dialog, type the project ID, and then click Shut down to delete the project.

後續步驟