google_vertex_ai_feature_group_feature

Vertex AI Feature Group Feature is feature metadata information.

To get more information about FeatureGroupFeature, see:

Open in Cloud Shell

Example Usage - Vertex Ai Feature Group Feature

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
}

Argument Reference

The following arguments are supported:


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

FeatureGroupFeature can be imported using any of these accepted formats:

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}}

User Project Overrides

This resource supports User Project Overrides.