Skip to content

Commit b14574d

Browse files
committed
Terraform config debugging
1 parent 3015625 commit b14574d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

infra/functions-python/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ resource "google_storage_bucket_object" "operations_api_zip" {
155155
# 9. Export CSV
156156
resource "google_storage_bucket_object" "export_csv_zip" {
157157
bucket = google_storage_bucket.functions_bucket.name
158-
name = "create-csv-${substr(filebase64sha256(local.function_create_csv_zip), 0, 10)}.zip"
159-
source = local.function_create_csv_zip
158+
name = "export-csv-${substr(filebase64sha256(local.function_export_csv_zip), 0, 10)}.zip"
159+
source = local.function_export_csv_zip
160160
}
161161

162162
# Secrets access
@@ -515,13 +515,13 @@ resource "google_cloudfunctions2_function" "export_csv" {
515515
source {
516516
storage_source {
517517
bucket = google_storage_bucket.functions_bucket.name
518-
object = google_storage_bucket_object.function_preprocessed_analytics.name
518+
object = google_storage_bucket_object.export_csv_zip.name
519519
}
520520
}
521521
}
522522
service_config {
523523
environment_variables = {
524-
DATASETS_BUCKET_NANE = google_storage_bucket.datasets_bucket.name
524+
DATASETS_BUCKET_NANE = var.datasets_bucket_name
525525
}
526526
available_memory = local.function_export_csv_config.memory
527527
timeout_seconds = local.function_export_csv_config.timeout

0 commit comments

Comments
 (0)