Skip to content

Commit cf53a53

Browse files
committed
Added env variables to the cloud function
1 parent 6389ec7 commit cf53a53

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

functions-python/tasks_executor/function_config.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
"trigger_http": true,
88
"include_folders": ["helpers"],
99
"include_api_folders": ["database_gen", "database", "common"],
10-
"environment_variables": [],
10+
"environment_variables": [
11+
{
12+
"key": "DATASETS_BUCKET_NAME"
13+
}
14+
],
1115
"secret_environment_variables": [
1216
{
1317
"key": "FEEDS_DATABASE_URL"

infra/functions-python/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,7 @@ resource "google_cloudfunctions2_function" "tasks_executor" {
12221222
PROJECT_ID = var.project_id
12231223
ENV = var.environment
12241224
PUBSUB_TOPIC_NAME = "rebuild-bounding-boxes-topic"
1225+
DATASETS_BUCKET_NAME = data.google_storage_bucket.datasets_bucket.name
12251226
}
12261227
available_memory = local.function_tasks_executor_config.memory
12271228
timeout_seconds = local.function_tasks_executor_config.timeout

0 commit comments

Comments
 (0)