為 Mainframe Assessment Tool 設定 Google Cloud 專案

本頁說明如何設定及配置 Google Cloud專案,以便使用 Mainframe Assessment Tool。

事前準備

  1. 在 Google Cloud 控制台的專案選擇器頁面中,選取或建立 Google Cloud 專案

    前往專案選取器

  2. 請確認您已為 Google Cloud 專案啟用計費功能。詳情請參閱「確認專案的帳單狀態」。

  3. 建立專用服務帳戶,存取 Mainframe Assessment Tool。詳情請參閱「建立服務帳戶」。

  4. 如要進行大型評估,請確認您在計畫建立 Mainframe Assessment Tool 執行個體的區域中,具備充足的配額。如要分配更多配額,請購買「已佈建的處理量」

啟用 API

  1. 啟用 Compute Engine API。

    啟用 Compute Engine API

  2. 啟用 Agent Platform API。

    啟用 Agent Platform API

設定防火牆規則

如要透過 IAP 啟用對 Mainframe Assessment Tool 執行個體的安全存取,請建立下列防火牆規則:

  1. 建立防火牆規則,允許透過 使用 IAP 進行 TCP 轉送,在 TCP 通訊埠 4000 上傳入流量:

    gcloud compute firewall-rules create allow-ingress-from-iap \
      --direction=INGRESS \
      --action=allow \
      --rules=tcp:4000\
      --source-ranges=35.235.240.0/20
    
  2. 建立防火牆規則,拒絕所有其他輸入流量傳送到 Mainframe Assessment Tool 執行個體:

     gcloud compute firewall-rules create deny-all-other-ingress \
      --direction=ingress \
      --action=deny \
      --rules=all \
      --source-ranges=0.0.0.0/0 \
      --network=your-network-name \
      --priority=65535
    

指派 IAM 角色和權限

為確保您建立的專屬服務帳戶具備必要權限,可授予 Mainframe Assessment Tool 元件存取 Agent Platform API 和其他服務的權限,請要求管理員將下列 IAM 角色授予您建立的專屬服務帳戶:

後續步驟