Vertex AI Feature Group Feature is feature metadata information.
To get more information about FeatureGroupFeature, see:
resource "google_vertex_ai_feature_group_feature" "feature_group_feature" {
name = "example_feature"
region = "us-central1"
feature_group = google_vertex_ai_feature_group.sample_feature_group.name
description = "A sample feature"
labels = {
label-one = "value-one"
}
}
resource "google_vertex_ai_feature_group" "sample_feature_group" {
name = "example_feature_group"
description = "A sample feature group"
region = "us-central1"
labels = {
label-one = "value-one"
}
big_query {
big_query_source {
# The source table must have a column named 'feature_timestamp' of type TIMESTAMP.
input_uri = "bq://${google_bigquery_table.sample_table.project}.${google_bigquery_table.sample_table.dataset_id}.${google_bigquery_table.sample_table.table_id}"
}
entity_id_columns = ["feature_id"]
}
}
resource "google_bigquery_dataset" "sample_dataset" {
dataset_id = "job_load_dataset"
friendly_name = "test"
description = "This is a test description"
location = "US"
}
resource "google_bigquery_table" "sample_table" {
deletion_protection = false
dataset_id = google_bigquery_dataset.sample_dataset.dataset_id
table_id = "job_load_table"
schema = <<EOF
[
{
"name": "feature_id",
"type": "STRING",
"mode": "NULLABLE"
},
{
"name": "example_feature",
"type": "STRING",
"mode": "NULLABLE"
},
{
"name": "feature_timestamp",
"type": "TIMESTAMP",
"mode": "NULLABLE"
}
]
EOF
}
The following arguments are supported:
name
-
(Required)
The resource name of the Feature Group Feature.
feature_group
-
(Required)
The name of the Feature Group.
region
-
(Required)
The region for the resource. It should be the same as the feature group's region.
labels
-
(Optional)
The labels with user-defined metadata to organize your FeatureGroup.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labels
for all of the labels present on the resource.
description
-
(Optional)
The description of the FeatureGroup.
version_column_name
-
(Optional)
The name of the BigQuery Table/View column hosting data for this version. If no value is provided, will use featureId.
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/{{region}}/featureGroups/{{feature_group}}/features/{{name}}
create_time
-
The timestamp of when the FeatureGroup was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
update_time
-
The timestamp of when the FeatureGroup was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
terraform_labels
-
The combination of labels configured directly on the resource
and default labels configured on the provider.
effective_labels
-
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.FeatureGroupFeature can be imported using any of these accepted formats:
projects/{{project}}/locations/{{region}}/featureGroups/{{feature_group}}/features/{{name}}
{{project}}/{{region}}/{{feature_group}}/{{name}}
{{region}}/{{feature_group}}/{{name}}
{{feature_group}}/{{name}}
In Terraform v1.5.0 and later, use an import
block to import FeatureGroupFeature using one of the formats above. For example:
import {
id = "projects/{{project}}/locations/{{region}}/featureGroups/{{feature_group}}/features/{{name}}"
to = google_vertex_ai_feature_group_feature.default
}
When using the terraform import
command, FeatureGroupFeature can be imported using one of the formats above. For example:
$ terraform import google_vertex_ai_feature_group_feature.default projects/{{project}}/locations/{{region}}/featureGroups/{{feature_group}}/features/{{name}}
$ terraform import google_vertex_ai_feature_group_feature.default {{project}}/{{region}}/{{feature_group}}/{{name}}
$ terraform import google_vertex_ai_feature_group_feature.default {{region}}/{{feature_group}}/{{name}}
$ terraform import google_vertex_ai_feature_group_feature.default {{feature_group}}/{{name}}
This resource supports User Project Overrides.