We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be38e0 commit ad7e8d4Copy full SHA for ad7e8d4
instance.tf
@@ -19,7 +19,7 @@ resource "google_sql_database_instance" "instance" {
19
enabled = coalesce(var.backup_config.enabled, var.highly_available)
20
start_time = var.backup_config.start_time
21
point_in_time_recovery_enabled = var.backup_config.point_in_time_recovery_enabled
22
- location = var.backup_config.enabled == true ? var.backup_config.location : null
+ location = coalesce(var.backup_config.enabled, var.highly_available) ? var.backup_config.location : null
23
transaction_log_retention_days = var.backup_config.transaction_log_retention_days
24
backup_retention_settings {
25
retained_backups = var.backup_config.retained_backups
0 commit comments