google_vertex_ai_index_endpoint

An endpoint indexes are deployed into. An index endpoint can have multiple deployed indexes.

To get more information about IndexEndpoint, see:

Example Usage - Vertex Ai Index Endpoint

resource "google_vertex_ai_index_endpoint" "index_endpoint" {
  display_name = "sample-endpoint"
  description  = "A sample vertex endpoint"
  region       = "us-central1"
  labels       = {
    label-one = "value-one"
  }
  network      = "projects/${data.google_project.project.number}/global/networks/${google_compute_network.vertex_network.name}"
  depends_on   = [
    google_service_networking_connection.vertex_vpc_connection
  ]
}

resource "google_service_networking_connection" "vertex_vpc_connection" {
  network                 = google_compute_network.vertex_network.id
  service                 = "servicenetworking.googleapis.com"
  reserved_peering_ranges = [google_compute_global_address.vertex_range.name]
}

resource "google_compute_global_address" "vertex_range" {
  name          = "address-name"
  purpose       = "VPC_PEERING"
  address_type  = "INTERNAL"
  prefix_length = 24
  network       = google_compute_network.vertex_network.id
}

resource "google_compute_network" "vertex_network" {
  name       = "network-name"
}

data "google_project" "project" {}
Open in Cloud Shell

Example Usage - Vertex Ai Index Endpoint With Psc

resource "google_vertex_ai_index_endpoint" "index_endpoint" {
  display_name = "sample-endpoint"
  description  = "A sample vertex endpoint"
  region       = "us-central1"
  labels       = {
    label-one = "value-one"
  }

  private_service_connect_config {
    enable_private_service_connect = true
    project_allowlist = [
        data.google_project.project.number,
    ]
  }
}

data "google_project" "project" {}
Open in Cloud Shell

Example Usage - Vertex Ai Index Endpoint With Public Endpoint

resource "google_vertex_ai_index_endpoint" "index_endpoint" {
  display_name = "sample-endpoint"
  description  = "A sample vertex endpoint with an public endpoint"
  region       = "us-central1"
  labels       = {
    label-one = "value-one"
  }

  public_endpoint_enabled = true
}

Argument Reference

The following arguments are supported:


The private_service_connect_config block supports:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

IndexEndpoint can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import IndexEndpoint using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/{{region}}/indexEndpoints/{{name}}"
  to = google_vertex_ai_index_endpoint.default
}

When using the terraform import command, IndexEndpoint can be imported using one of the formats above. For example:

$ terraform import google_vertex_ai_index_endpoint.default projects/{{project}}/locations/{{region}}/indexEndpoints/{{name}}
$ terraform import google_vertex_ai_index_endpoint.default {{project}}/{{region}}/{{name}}
$ terraform import google_vertex_ai_index_endpoint.default {{region}}/{{name}}
$ terraform import google_vertex_ai_index_endpoint.default {{name}}

User Project Overrides

This resource supports User Project Overrides.