Skip to content

Commit

Permalink
Added maintenance window for prod postgress
Browse files Browse the repository at this point in the history
  • Loading branch information
VenkataChalla554 committed Jul 9, 2024
1 parent 64efb9d commit c71e294
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 18 deletions.
56 changes: 39 additions & 17 deletions terraform/application/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@
"enable_monitoring": true,
"external_hostname": "apply-for-qts-in-england.education.gov.uk",
"namespace": "tra-production",
"uploads_storage_environment_tag": "Production"
"uploads_storage_environment_tag": "Production",
"azure_maintenance_window": {
"day_of_week": 0,
"start_hour": 3,
"start_minute": 0
}
}
2 changes: 2 additions & 0 deletions terraform/application/databases.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ module "postgres" {
use_azure = var.deploy_azure_backing_services
azure_enable_monitoring = var.enable_monitoring
azure_extensions = ["pg_stat_statements", "pgcrypto"]

azure_maintenance_window = var.azure_maintenance_window
}
2 changes: 2 additions & 0 deletions terraform/application/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,5 @@ variable "uploads_storage_account_name" {
type = string
default = null
}

variable "azure_maintenance_window" { default = null }

0 comments on commit c71e294

Please sign in to comment.