Configure Vertex AI APIs

In Application Design Center, you can configure a Vertex AI component to enable Vertex AI APIs and grant connected workloads access to train and deploy machine learning (ML) models and AI applications. You can customize the component's connections and configuration parameters based on the terraform-google-project-factory Terraform module on GitHub.

Component connections

The following table includes the components that you can connect to a Vertex AI component, and the resulting updates to your application and its generated Terraform code.

Connected component Application updates Background information

Compute Engine instance template

  • The Compute Engine instances can interact with Vertex AI services.
  • The roles/aiplatform.user role is granted to the Compute Engine instance template service account.
Vertex AI access control with Identity and Access Management (IAM)

Service account

  • The service account can interact with Vertex AI services.
  • The roles/aiplatform.user role is granted to the service account.
Vertex AI access control with IAM

Cloud Run

  • The Cloud Run service can interact with Vertex AI services.
  • The roles/aiplatform.user role is granted to the Cloud Run service account.
Host AI apps and agents on Cloud Run

Required configuration parameters

If your template includes a Vertex AI component, you must configure the following parameters before you deploy.

Parameter name Description and constraints Background information

Project ID

The project where you want to enable Vertex AI APIs.

Configure components

Optional configuration parameters

The following parameters are optional. To display advanced parameters, in the Configuration area, select Show advanced fields.

Feature Parameter name Description and constraint information Background information

Enable APIs

Enabled by default. To skip API enablement, clear the checkbox. Set up a project and a development environment

Activate APIs

By default, the Vertex AI API is activated. If you add other APIs in the Activate API Identities section, the additional APIs are appended to this list. Service agents
Activate API Identities

API

An additional API that you want to activate. A service agent is created for this API. Service agents
Activate API Identities

Roles

The roles that you want to grant to the service agent. Role list

Disable Service on Destroy

By default, the service is disabled when the Terraform resource is destroyed. disable_on_destroy

Disable Service Dependent Services

By default, dependent services are disabled when the Terraform resource is destroyed. disable_dependent_services