Data store is a collection of websites and documents used to find answers for end-user's questions in Discovery Engine (a.k.a. Vertex AI Search and Conversation).
To get more information about DataStore, see:
resource "google_discovery_engine_data_store" "basic" {
location = "global"
data_store_id = "data-store-id"
display_name = "tf-test-structured-datastore"
industry_vertical = "GENERIC"
content_config = "NO_CONTENT"
solution_types = ["SOLUTION_TYPE_SEARCH"]
create_advanced_site_search = false
}
The following arguments are supported:
display_name
-
(Required)
The display name of the data store. This field must be a UTF-8 encoded
string with a length limit of 128 characters.
industry_vertical
-
(Required)
The industry vertical that the data store registers.
Possible values are: GENERIC
, MEDIA
.
content_config
-
(Required)
The content config of the data store.
Possible values are: NO_CONTENT
, CONTENT_REQUIRED
, PUBLIC_WEBSITE
.
location
-
(Required)
The geographic location where the data store should reside. The value can
only be one of "global", "us" and "eu".
data_store_id
-
(Required)
The unique id of the data store.
solution_types
-
(Optional)
The solutions that the data store enrolls.
Each value may be one of: SOLUTION_TYPE_RECOMMENDATION
, SOLUTION_TYPE_SEARCH
, SOLUTION_TYPE_CHAT
.
create_advanced_site_search
-
(Optional)
If true, an advanced data store for site search will be created. If the
data store is not configured as site search (GENERIC vertical and
PUBLIC_WEBSITE contentConfig), this flag will be ignored.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/locations/{{location}}/collections/default_collection/dataStores/{{data_store_id}}
name
-
The unique full resource name of the data store. Values are of the format
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}
.
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
default_schema_id
-
The id of the default Schema associated with this data store.
create_time
-
Timestamp when the DataStore was created.
This resource provides the following Timeouts configuration options:
create
- Default is 60 minutes.update
- Default is 60 minutes.delete
- Default is 60 minutes.DataStore can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/collections/default_collection/dataStores/{{data_store_id}}
{{project}}/{{location}}/{{data_store_id}}
{{location}}/{{data_store_id}}
In Terraform v1.5.0 and later, use an import
block to import DataStore using one of the formats above. For example:
import {
id = "projects/{{project}}/locations/{{location}}/collections/default_collection/dataStores/{{data_store_id}}"
to = google_discovery_engine_data_store.default
}
When using the terraform import
command, DataStore can be imported using one of the formats above. For example:
$ terraform import google_discovery_engine_data_store.default projects/{{project}}/locations/{{location}}/collections/default_collection/dataStores/{{data_store_id}}
$ terraform import google_discovery_engine_data_store.default {{project}}/{{location}}/{{data_store_id}}
$ terraform import google_discovery_engine_data_store.default {{location}}/{{data_store_id}}
This resource supports User Project Overrides.