Terraform 对 Gemini Enterprise Agent Platform 的支持

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 配置示例
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 Feature Store 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 中查看
Vector Search 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