-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added required attributes to postgres
WHY: There is a required minimum standard setting for prod postgres HOW: By setting HA, Maintenance window and SKU
- Loading branch information
1 parent
3a1e8be
commit 03a7803
Showing
3 changed files
with
40 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters