File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,8 @@ resource "google_storage_bucket_object" "operations_api_zip" {
155155# 9. Export CSV
156156resource "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
You can’t perform that action at this time.
0 commit comments