google_discovery_engine_search_engine

Vertex AI Search and Conversation can be used to create a search engine or a chat application by connecting it with a datastore

To get more information about SearchEngine, see:

Open in Cloud Shell

Example Usage - Discoveryengine Searchengine Basic

resource "google_discovery_engine_data_store" "basic" {
  location                    = "global"
  data_store_id               = "example-datastore-id"
  display_name                = "tf-test-structured-datastore"
  industry_vertical           = "GENERIC"
  content_config              = "NO_CONTENT"
  solution_types              = ["SOLUTION_TYPE_SEARCH"]
  create_advanced_site_search = false
}
resource "google_discovery_engine_search_engine" "basic" {
  engine_id = "example-engine-id"
  collection_id = "default_collection"
  location = google_discovery_engine_data_store.basic.location
  display_name = "Example Display Name"
  data_store_ids = [google_discovery_engine_data_store.basic.data_store_id]
  search_engine_config {
  }
}

Argument Reference

The following arguments are supported:

The search_engine_config block supports:


The common_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

SearchEngine can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/{{location}}/collections/{{collection_id}}/engines/{{engine_id}}"
  to = google_discovery_engine_search_engine.default
}

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

$ terraform import google_discovery_engine_search_engine.default projects/{{project}}/locations/{{location}}/collections/{{collection_id}}/engines/{{engine_id}}
$ terraform import google_discovery_engine_search_engine.default {{project}}/{{location}}/{{collection_id}}/{{engine_id}}
$ terraform import google_discovery_engine_search_engine.default {{location}}/{{collection_id}}/{{engine_id}}

User Project Overrides

This resource supports User Project Overrides.