Skip to content

Commit

Permalink
Merge pull request #1478 from CDCgov/custom-db-maintenance
Browse files Browse the repository at this point in the history
Specify Maintenance Window for the Database
  • Loading branch information
halprin authored Oct 24, 2024
2 parents 1440ce6 + 80ec9d3 commit 1ec2d91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions operations/template/db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ resource "azurerm_postgresql_flexible_server" "database" {
tenant_id = data.azurerm_client_config.current.tenant_id
}

maintenance_window { # Sunday at 12:00 UTC which is 7:00 AM EST or 8:00 AM EDT (around the time of our SLA's maintenance window)
day_of_week = 0
start_hour = 12
start_minute = 0
}

depends_on = [azurerm_private_dns_zone_virtual_network_link.db_network_link]

lifecycle {
Expand Down

0 comments on commit 1ec2d91

Please sign in to comment.