Skip to content

Commit 00acdf8

Browse files
authored
chore: change default region from us-central1 to us-west1 (#936)
* chore: change default region from us-central1 to us-west1 Update the default GCP region across the entire project: CLI defaults, Terraform variables, Cloud Build substitutions, Makefiles, agent code, deployment utilities, documentation, and test fixtures. The cleanup script retains us-central1 in its region list to ensure old resources are still cleaned up. * fix: ruff formatting after region rename * chore: regenerate makefile hashes for us-west1 default * fix: ruff formatting in expose_app.py after region rename
1 parent 746378b commit 00acdf8

77 files changed

Lines changed: 156 additions & 160 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cloudbuild/terraform/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ variable "cicd_runner_project_id" {
2020
variable "region" {
2121
type = string
2222
description = "Google Cloud region for resource deployment."
23-
default = "us-central1"
23+
default = "us-west1"
2424
}
2525

2626
variable "host_connection_name" {

agent_starter_pack/agents/adk/app/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def get_current_time(query: str) -> str:
9292
_plugins = []
9393
_project_id = os.environ.get("GOOGLE_CLOUD_PROJECT")
9494
_dataset_id = os.environ.get("BQ_ANALYTICS_DATASET_ID", "adk_agent_analytics")
95-
_location = os.environ.get("GOOGLE_CLOUD_LOCATION", "us-central1")
95+
_location = os.environ.get("GOOGLE_CLOUD_LOCATION", "us-west1")
9696

9797
if _project_id:
9898
try:

agent_starter_pack/agents/adk/notebooks/adk_app_testing.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"outputs": [],
6868
"source": [
6969
"# Initialize the Vertex AI client\n",
70-
"LOCATION = \"us-central1\"\n",
70+
"LOCATION = \"us-west1\"\n",
7171
"\n",
7272
"client = vertexai.Client(\n",
7373
" location=LOCATION,\n",
@@ -96,7 +96,7 @@
9696
"outputs": [],
9797
"source": [
9898
"# Set to None to auto-detect from ./deployment_metadata.json, or specify manually\n",
99-
"# \"projects/PROJECT_ID/locations/us-central1/reasoningEngines/ENGINE_ID\"\n",
99+
"# \"projects/PROJECT_ID/locations/us-west1/reasoningEngines/ENGINE_ID\"\n",
100100
"REASONING_ENGINE_ID = None\n",
101101
"\n",
102102
"if REASONING_ENGINE_ID is None:\n",

agent_starter_pack/agents/adk/notebooks/evaluating_adk_agent.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
"if not PROJECT_ID or PROJECT_ID == \"[your-project-id]\":\n",
199199
" PROJECT_ID = str(os.environ.get(\"GOOGLE_CLOUD_PROJECT\"))\n",
200200
"\n",
201-
"LOCATION = os.environ.get(\"GOOGLE_CLOUD_REGION\", \"us-central1\")\n",
201+
"LOCATION = os.environ.get(\"GOOGLE_CLOUD_REGION\", \"us-west1\")\n",
202202
"\n",
203203
"BUCKET_NAME = \"[your-bucket-name]\" # @param {type: \"string\", placeholder: \"[your-bucket-name]\", isTemplate: true}\n",
204204
"BUCKET_URI = f\"gs://{BUCKET_NAME}\"\n",

agent_starter_pack/agents/adk_a2a/app/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def request_user_input(message: str) -> dict:
110110
_plugins = []
111111
_project_id = os.environ.get("GOOGLE_CLOUD_PROJECT")
112112
_dataset_id = os.environ.get("BQ_ANALYTICS_DATASET_ID", "adk_agent_analytics")
113-
_location = os.environ.get("GOOGLE_CLOUD_LOCATION", "us-central1")
113+
_location = os.environ.get("GOOGLE_CLOUD_LOCATION", "us-west1")
114114

115115
if _project_id:
116116
try:

agent_starter_pack/agents/adk_a2a/notebooks/adk_a2a_app_testing.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"outputs": [],
8888
"source": [
8989
"# Initialize the Vertex AI client\n",
90-
"LOCATION = \"us-central1\"\n",
90+
"LOCATION = \"us-west1\"\n",
9191
"\n",
9292
"client = vertexai.Client(\n",
9393
" location=LOCATION,\n",
@@ -116,7 +116,7 @@
116116
"outputs": [],
117117
"source": [
118118
"# Set to None to auto-detect from ./deployment_metadata.json, or specify manually\n",
119-
"# \"projects/PROJECT_ID/locations/us-central1/reasoningEngines/ENGINE_ID\"\n",
119+
"# \"projects/PROJECT_ID/locations/us-west1/reasoningEngines/ENGINE_ID\"\n",
120120
"REASONING_ENGINE_ID = None\n",
121121
"\n",
122122
"if REASONING_ENGINE_ID is None:\n",

agent_starter_pack/agents/adk_a2a/notebooks/evaluating_adk_agent.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
"if not PROJECT_ID or PROJECT_ID == \"[your-project-id]\":\n",
199199
" PROJECT_ID = str(os.environ.get(\"GOOGLE_CLOUD_PROJECT\"))\n",
200200
"\n",
201-
"LOCATION = os.environ.get(\"GOOGLE_CLOUD_REGION\", \"us-central1\")\n",
201+
"LOCATION = os.environ.get(\"GOOGLE_CLOUD_REGION\", \"us-west1\")\n",
202202
"\n",
203203
"BUCKET_NAME = \"[your-bucket-name]\" # @param {type: \"string\", placeholder: \"[your-bucket-name]\", isTemplate: true}\n",
204204
"BUCKET_URI = f\"gs://{BUCKET_NAME}\"\n",

agent_starter_pack/agents/adk_live/app/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525

2626
_, project_id = google.auth.default()
2727
os.environ["GOOGLE_CLOUD_PROJECT"] = project_id
28-
os.environ["GOOGLE_CLOUD_LOCATION"] = "us-central1"
28+
os.environ["GOOGLE_CLOUD_LOCATION"] = "us-west1"
2929
os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "True"
3030

31-
vertexai.init(project=project_id, location="us-central1")
31+
vertexai.init(project=project_id, location="us-west1")
3232
{%- endif %}
3333

3434

agent_starter_pack/agents/agentic_rag/app/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{%- endif %}
4040

4141
LLM_LOCATION = "global"
42-
LOCATION = "us-central1"
42+
LOCATION = "us-west1"
4343
LLM = "gemini-3-flash-preview"
4444

4545
credentials, project_id = google.auth.default()
@@ -116,7 +116,7 @@ def retrieve_docs(query: str) -> str:
116116
_plugins = []
117117
_project_id = os.environ.get("GOOGLE_CLOUD_PROJECT")
118118
_dataset_id = os.environ.get("BQ_ANALYTICS_DATASET_ID", "adk_agent_analytics")
119-
_location = os.environ.get("GOOGLE_CLOUD_LOCATION", "us-central1")
119+
_location = os.environ.get("GOOGLE_CLOUD_LOCATION", "us-west1")
120120

121121
if _project_id:
122122
try:

agent_starter_pack/agents/agentic_rag/data_ingestion/data_ingestion_pipeline/components/process_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def process_data(
3939
destination_dataset: str = "stackoverflow_data",
4040
destination_table: str = "incremental_questions_embeddings",
4141
deduped_table: str = "questions_embeddings",
42-
location: str = "us-central1",
42+
location: str = "us-west1",
4343
) -> None:
4444
"""Process StackOverflow questions and answers by:
4545
1. Fetching data from BigQuery

0 commit comments

Comments
 (0)