Skip to content

Commit

Permalink
Terraform corrections 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jcpitre committed Jan 28, 2025
1 parent d0f2fcb commit 85015e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/functions-python/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ resource "google_storage_bucket" "gbfs_snapshots_bucket" {
}

resource "google_storage_bucket_iam_member" "datasets_bucket_functions_service_account" {
bucket = google_storage_bucket.datasets_bucket.name
bucket = data.google_storage_bucket.datasets_bucket.name
role = "roles/storage.admin"
member = "serviceAccount:${google_service_account.functions_service_account.email}"
}
Expand Down Expand Up @@ -868,7 +868,7 @@ resource "google_cloudfunctions2_function" "export_csv" {
}
service_config {
environment_variables = {
DATASETS_BUCKET_NAME = "${var.datasets_bucket_name}-${var.environment}"
DATASETS_BUCKET_NAME = data.google_storage_bucket.datasets_bucket.name
PROJECT_ID = var.project_id
ENVIRONMENT = var.environment
}
Expand Down

0 comments on commit 85015e5

Please sign in to comment.