Skip to content

Commit

Permalink
fix: terraform hotfix for backfill-dataset-service-date-range (#895)
Browse files Browse the repository at this point in the history
* terraform hotfix
  • Loading branch information
Alessandro100 authored Jan 24, 2025
1 parent 9c12be7 commit e59d956
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions infra/functions-python/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ locals {
function_operations_api_zip = "${path.module}/../../functions-python/operations_api/.dist/operations_api.zip"

function_backfill_dataset_service_date_range_config = jsondecode(file("${path.module}/../../functions-python/backfill_dataset_service_date_range/function_config.json"))
function_backfill_dataset_service_date_range_zip = "${path.module}/../../functions-python/backfill_dataset_service_date_range/.dist/operations_api.zip"
function_backfill_dataset_service_date_range_zip = "${path.module}/../../functions-python/backfill_dataset_service_date_range/.dist/backfill_dataset_service_date_range.zip"
}

locals {
Expand Down Expand Up @@ -154,10 +154,10 @@ resource "google_storage_bucket_object" "operations_api_zip" {
}

# 9. Backfill Gtfs Datasets Service Date Range
resource "google_storage_bucket_object" "function_backfill_dataset_service_date_range_zip" {
resource "google_storage_bucket_object" "backfill_dataset_service_date_range_zip" {
bucket = google_storage_bucket.functions_bucket.name
name = "backfill-dataset-service-date-range-${substr(filebase64sha256(local.function_operations_api_zip), 0, 10)}.zip"
source = local.function_operations_api_zip
name = "backfill-dataset-service-date-range-${substr(filebase64sha256(local.function_backfill_dataset_service_date_range_zip), 0, 10)}.zip"
source = local.function_backfill_dataset_service_date_range_zip
}


Expand Down

0 comments on commit e59d956

Please sign in to comment.