Skip to content

Commit

Permalink
add regional bucket and fix deployed index access
Browse files Browse the repository at this point in the history
  • Loading branch information
caetano-colin committed Jun 6, 2024
1 parent e0a50f2 commit d1a02dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@
"metadata": {},
"outputs": [],
"source": [
"SERVICE_ATTACHMENT=index_endpoint.deployed_indexes.private_endpoints.service_attachment\n",
"SERVICE_ATTACHMENT=index_endpoint.deployed_indexes[0].private_endpoints.service_attachment\n",
"\n",
"SERVICE_ATTACHMENT"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ resource "random_string" "suffix" {

resource "google_storage_bucket" "vector_search_bucket" {
name = "vector-search-${random_string.suffix.result}"
location = "US"
location = var.vector_search_bucket_location
storage_class = "REGIONAL"
project = var.machine_learning_project
uniform_bucket_level_access = true
}
Expand Down
6 changes: 6 additions & 0 deletions examples/genai-rag-multimodal/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ variable "service_account_name" {
default = "rag-notebook-runner"
}

variable "vector_search_bucket_location" {
description = "Bucket Region"
type = string
default = "US-CENTRAL1"
}

variable "machine_learning_project" {
description = "Machine Learning Project ID"
type = string
Expand Down

0 comments on commit d1a02dc

Please sign in to comment.