-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add vertexai/featureonlinestore resource (#9632)
* rebase featureonlinestore based on merged changes * rebase based on merged featureonlinestore pr * fix pr suggestions featureonlinestore * fix documentation and pr comments featureonlinestore
- Loading branch information
Showing
5 changed files
with
157 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 12 additions & 13 deletions
25
mmv1/templates/terraform/examples/vertex_ai_feature_online_store.tf.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
resource google_vertex_ai_feature_online_store "<%= ctx[:primary_resource_id] %>" { | ||
name = "<%= ctx[:vars]['name'] %>" | ||
region = "us-central1" | ||
labels = { | ||
label-one = "value-one" | ||
} | ||
|
||
bigtable { | ||
auto_scaling { | ||
min_node_count = 1 | ||
max_node_count = 2 | ||
cpu_utilization_target = 60 | ||
} | ||
resource "google_vertex_ai_feature_online_store" "<%= ctx[:primary_resource_id] %>" { | ||
name = "<%= ctx[:vars]['name'] %>" | ||
labels = { | ||
foo = "bar" | ||
} | ||
region = "us-central1" | ||
bigtable { | ||
auto_scaling { | ||
min_node_count = 1 | ||
max_node_count = 3 | ||
cpu_utilization_target = 50 | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...emplates/terraform/examples/vertex_ai_featureonlinestore_with_beta_fields_bigtable.tf.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
resource "google_vertex_ai_feature_online_store" "<%= ctx[:primary_resource_id] %>" { | ||
provider = google-beta | ||
name = "<%= ctx[:vars]['name'] %>" | ||
labels = { | ||
foo = "bar" | ||
} | ||
region = "us-central1" | ||
bigtable { | ||
auto_scaling { | ||
min_node_count = 1 | ||
max_node_count = 2 | ||
cpu_utilization_target = 80 | ||
} | ||
} | ||
embedding_management { | ||
enabled = true | ||
} | ||
force_destroy = true | ||
} | ||
|
||
data "google_project" "project" { | ||
provider = google-beta | ||
} |
21 changes: 21 additions & 0 deletions
21
...mplates/terraform/examples/vertex_ai_featureonlinestore_with_beta_fields_optimized.tf.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
resource "google_vertex_ai_feature_online_store" "<%= ctx[:primary_resource_id] %>" { | ||
provider = google-beta | ||
name = "<%= ctx[:vars]['name'] %>" | ||
labels = { | ||
foo = "bar" | ||
} | ||
region = "us-central1" | ||
optimized {} | ||
dedicated_serving_endpoint { | ||
private_service_connect_config { | ||
enable_private_service_connect = true | ||
project_allowlist = [data.google_project.project.number] | ||
} | ||
} | ||
} | ||
|
||
data "google_project" "project" { | ||
provider = google-beta | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters