Skip to content

Commit

Permalink
Merge pull request #1070 from DFE-Digital/feature/1787-fix-find-a-lost
Browse files Browse the repository at this point in the history
Added required attributes to postgres and redis
  • Loading branch information
temitope777 authored May 3, 2024
2 parents 3a1e8be + 03a7803 commit 67a943c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 26 deletions.
50 changes: 24 additions & 26 deletions terraform/aks/databases.tf
Original file line number Diff line number Diff line change
@@ -1,37 +1,35 @@
module "postgres" {
source = "./vendor/modules/aks//aks/postgres"

namespace = var.namespace
environment = local.environment
azure_resource_prefix = var.azure_resource_prefix
service_name = local.service_name
service_short = var.service_short
config_short = var.config_short

cluster_configuration_map = module.cluster_data.configuration_map

use_azure = var.deploy_azure_backing_services
azure_enable_monitoring = var.enable_monitoring
azure_extensions = ["plpgsql", "citext", "uuid-ossp"]
server_version = "14"

azure_enable_backup_storage = var.azure_enable_backup_storage
namespace = var.namespace
environment = local.environment
azure_resource_prefix = var.azure_resource_prefix
service_name = local.service_name
service_short = var.service_short
config_short = var.config_short
cluster_configuration_map = module.cluster_data.configuration_map
use_azure = var.deploy_azure_backing_services
azure_enable_monitoring = var.enable_monitoring
azure_extensions = ["plpgsql", "citext", "uuid-ossp"]
server_version = "14"
azure_enable_backup_storage = var.azure_enable_backup_storage
azure_sku_name = var.postgres_flexible_server_sku
azure_enable_high_availability = var.postgres_enable_high_availability
azure_maintenance_window = var.azure_maintenance_window
}

module "redis" {
count = var.deploy_redis ? 1 : 0
source = "./vendor/modules/aks//aks/redis"

namespace = var.namespace
environment = local.environment
azure_resource_prefix = var.azure_resource_prefix
service_name = local.service_name
service_short = var.service_short
config_short = var.config_short

namespace = var.namespace
environment = local.environment
azure_resource_prefix = var.azure_resource_prefix
service_name = local.service_name
service_short = var.service_short
config_short = var.config_short
cluster_configuration_map = module.cluster_data.configuration_map

use_azure = var.deploy_azure_backing_services
azure_enable_monitoring = var.enable_monitoring
azure_patch_schedule = [{ "day_of_week" : "Sunday", "start_hour_utc" : 01 }]
use_azure = var.deploy_azure_backing_services
azure_enable_monitoring = var.enable_monitoring
azure_patch_schedule = [{ "day_of_week" : "Sunday", "start_hour_utc" : 01 }]
}
9 changes: 9 additions & 0 deletions terraform/aks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ variable "enable_monitoring" {
default = false
description = "Enable monitoring and alerting"
}
variable "postgres_enable_high_availability" {
default = false
}
variable "postgres_flexible_server_sku" {
default = "B_Standard_B1ms"
}
variable "azure_maintenance_window" {
default = null
}

variable "enable_postgres_ssl" {
default = true
Expand Down
7 changes: 7 additions & 0 deletions terraform/aks/workspace_variables/production.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
"config_short": "pd",
"service_short": "faltrn",
"app_key_vault": "s189p01-faltrn-pd-app-kv",
"postgres_flexible_server_sku": "GP_Standard_D2ds_v4",
"postgres_enable_high_availability": true,
"azure_maintenance_window": {
"day_of_week": 0,
"start_hour": 3,
"start_minute": 0
},
"statuscake_alerts": {
"alert": {
"website_url": [
Expand Down

0 comments on commit 67a943c

Please sign in to comment.