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 1906716 commit 1cafd70Copy full SHA for 1cafd70
instance.tf
@@ -27,9 +27,12 @@ resource "google_sql_database_instance" "instance" {
27
ipv4_enabled = true
28
require_ssl = true
29
}
30
- maintenance_window {
31
- day = 1
32
- hour = 4
+ dynamic "maintenance_window" {
+ for_each = var.primary_instance_name == null ? [0] : []
+ content {
33
+ day = 1
34
+ hour = 4
35
+ }
36
37
38
0 commit comments