google_vertex_ai_feature_group

Vertex AI Feature Group.

To get more information about FeatureGroup, see:

Open in Cloud Shell

Example Usage - Vertex Ai Feature Group

  resource "google_vertex_ai_feature_group" "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": "feature_timestamp",
        "type": "TIMESTAMP",
        "mode": "NULLABLE"
    }
]
EOF
}

Argument Reference

The following arguments are supported:


The big_query block supports:

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

FeatureGroup can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/{{region}}/featureGroups/{{name}}"
  to = google_vertex_ai_feature_group.default
}

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

$ terraform import google_vertex_ai_feature_group.default projects/{{project}}/locations/{{region}}/featureGroups/{{name}}
$ terraform import google_vertex_ai_feature_group.default {{project}}/{{region}}/{{name}}
$ terraform import google_vertex_ai_feature_group.default {{region}}/{{name}}
$ terraform import google_vertex_ai_feature_group.default {{name}}

User Project Overrides

This resource supports User Project Overrides.