Skip to content

Commit

Permalink
fix: coalesce log sink location
Browse files Browse the repository at this point in the history
  • Loading branch information
nbugden committed Apr 9, 2024
1 parent 165e231 commit a0397ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 1-org/envs/shared/log_sinks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module "logs_export" {
logging_sink_filter = local.logs_filter
logging_sink_name = "sk-c-logging-bkt"
storage_bucket_name = "bkt-${module.org_audit_logs.project_id}-org-logs-${random_string.suffix.result}"
location = try(var.log_export_storage_location, local.default_region)
location = coalesce(var.log_export_storage_location, local.default_region)
retention_policy_enabled = var.log_export_storage_retention_policy != null
retention_policy_is_locked = var.log_export_storage_retention_policy == null ? null : var.log_export_storage_retention_policy.is_locked
retention_policy_period_days = var.log_export_storage_retention_policy == null ? null : var.log_export_storage_retention_policy.retention_period_days
Expand Down Expand Up @@ -93,5 +93,5 @@ resource "google_bigquery_dataset" "billing_dataset" {
dataset_id = "billing_data"
project = module.org_billing_logs.project_id
friendly_name = "GCP Billing Data"
location = try(var.billing_export_dataset_location, local.default_region)
location = coalesce(var.billing_export_dataset_location, local.default_region)
}

0 comments on commit a0397ec

Please sign in to comment.