Skip to content

Commit

Permalink
Redis Cluster maintenance policy and schedule addition (#11574) (#782)
Browse files Browse the repository at this point in the history
[upstream:2fde08a9f99b96341fc9e3008015905d72f7f912]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Sep 2, 2024
1 parent 052c18c commit 167d00f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions redis_cluster_ha/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ resource "google_redis_cluster" "cluster-ha" {
zone_distribution_config {
mode = "MULTI_ZONE"
}
maintenance_policy {
weekly_maintenance_window {
day = "MONDAY"
start_time {
hours = 1
minutes = 0
seconds = 0
nanos = 0
}
}
}
depends_on = [
google_network_connectivity_service_connection_policy.default
]
Expand Down
11 changes: 11 additions & 0 deletions redis_cluster_ha_single_zone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ resource "google_redis_cluster" "cluster-ha-single-zone" {
mode = "SINGLE_ZONE"
zone = "us-central1-f"
}
maintenance_policy {
weekly_maintenance_window {
day = "MONDAY"
start_time {
hours = 1
minutes = 0
seconds = 0
nanos = 0
}
}
}
deletion_protection_enabled = false
depends_on = [
google_network_connectivity_service_connection_policy.default
Expand Down

0 comments on commit 167d00f

Please sign in to comment.