Gemini Enterprise Agent Platform 的 Terraform 支援

Terraform 是一種基礎架構即程式碼 (IaC) 工具,可用於為多項 Google Cloud 服務佈建資源和權限,包括 Gemini Enterprise Agent Platform。

Terraform 採用宣告式和設定導向的語法,可用來描述要在 Agent Platform 專案中佈建的基礎架構。在一或多個 Terraform 設定檔中編寫這項設定後,您可以使用 Terraform CLI 將這項設定套用至 Agent Platform 資源。

假設您想將標準化設定套用至特定類型的多個 Gemini Enterprise Agent Platform 資源。使用 Terraform,您可以簡化整個程序,如下所示:

  • 在 Terraform 設定檔中描述所選基礎架構。您不需要使用 Agent Platform API 的物件和方法,編寫程式碼來說明如何佈建這項設定。

  • 使用 Terraform 評估 Terraform 設定,並產生執行計畫。根據這項設定,Terraform 會指出計畫對 Agent Platform 基礎架構進行哪些變更。

  • 使用 Terraform 套用執行計畫中的變更。Terraform 會在背景叫用 Agent Platform API,套用規劃的變更。

    • 如果 Terraform 設定中定義的 Agent Platform 資源或基礎架構物件不存在,Terraform 會建立該物件。

    • 如果 Agent Platform 資源或基礎架構物件存在,但設定不同,Terraform 會更新該物件,使其與 Terraform 設定相符。

    • 如果有任何 Agent Platform 資源或基礎架構物件與 Terraform 設定相符,Terraform 會保留該資源或物件。

Agent Platform 適用的 Terraform 資源

Terraform 資源代表基礎架構物件。下表列出 Agent Platform 產品和服務可用的 Terraform 資源,以及 Terraform 設定範例連結:

Agent Platform 產品或服務 Terraform 資源 Terraform 設定範例
Gemini Enterprise Agent Platform 的 Agent Runtime google_vertex_ai_reasoning_engine 查看說明文件
Agent Platform Workbench google_workbench_instance 前往 GitHub 查看
Agent Platform 代管資料集 google_vertex_ai_dataset 前往 GitHub 查看
線上推論 (AutoML 和自訂訓練) google_vertex_ai_endpoint 前往 GitHub 查看
Model Garden google_vertex_ai_endpoint_with_model_garden_deployment
Agent Platform 特徵儲存庫 google_vertex_ai_feature_group
google_vertex_ai_feature_group_feature
google_vertex_ai_feature_online_store
google_vertex_ai_feature_online_store_featureview
Vertex ML Metadata google_vertex_ai_metadata_store 前往 GitHub 查看
向量搜尋 google_vertex_ai_index 前往 GitHub 查看
google_vertex_ai_index_endpoint
google_vertex_ai_index_endpoint_deployed_index
Vertex AI TensorBoard google_vertex_ai_tensorboard 前往 GitHub 查看

進一步瞭解 Terraform