Fix weekly_schedule config section for secondary instance (#3932)

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
This commit is contained in:
Brandon Tucker
2026-05-06 07:57:30 -06:00
committed by GitHub
parent 8eca61bb46
commit 50759c887a

View File

@@ -313,11 +313,14 @@ resource "google_alloydb_cluster" "secondary" {
weekly_schedule {
days_of_week = var.automated_backup_configuration.weekly_schedule.days_of_week
start_times {
hours = var.automated_backup_configuration.weekly_schedule.start_times.hours
minutes = 0
seconds = 0
nanos = 0
dynamic "start_times" {
for_each = var.automated_backup_configuration.weekly_schedule.start_times
content {
hours = start_times.value.hours
minutes = 0
seconds = 0
nanos = 0
}
}
}