diff --git a/.secrets.baseline b/.secrets.baseline index 087a2360a..97e303e35 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -244,7 +244,7 @@ "filename": "operations/template/db.tf", "hashed_secret": "7cb6efb98ba5972a9b5090dc2e517fe14d12cb04", "is_verified": false, - "line_number": 15, + "line_number": 16, "is_secret": false } ], @@ -269,6 +269,5 @@ } ] }, - "generated_at": "2024-02-09T23:44:14Z" - + "generated_at": "2024-02-16T15:55:01Z" } diff --git a/operations/template/db.tf b/operations/template/db.tf index 06333f379..6666a3f9d 100644 --- a/operations/template/db.tf +++ b/operations/template/db.tf @@ -6,9 +6,10 @@ resource "azurerm_postgresql_flexible_server" "database" { name = "cdcti-${var.environment}-database" resource_group_name = data.azurerm_resource_group.group.name location = data.azurerm_resource_group.group.location - sku_name = "B_Standard_B1ms" + sku_name = local.higher_environment_level ? "B_Standard_B2ms" : "B_Standard_B1ms" version = "16" storage_mb = "32768" + auto_grow_enabled = true backup_retention_days = "14" authentication { @@ -48,4 +49,4 @@ resource "azurerm_postgresql_flexible_server_firewall_rule" "db_firewall_5" { server_id = azurerm_postgresql_flexible_server.database.id start_ip_address = "0.0.0.0" end_ip_address = "0.0.0.0" -} \ No newline at end of file +} diff --git a/operations/template/main.tf b/operations/template/main.tf index 6dee665d5..02060b435 100644 --- a/operations/template/main.tf +++ b/operations/template/main.tf @@ -6,10 +6,11 @@ locals { } selected_rs_environment_prefix = lookup(local.environment_to_rs_environment_prefix_mapping, var.environment, "staging") rs_domain_prefix = "${local.selected_rs_environment_prefix}${length(local.selected_rs_environment_prefix) == 0 ? "" : "."}" + higher_environment_level = var.environment == "stg" || var.environment == "prd" } data "azurerm_resource_group" "group" { name = "csels-rsti-${var.environment}-moderate-rg" } -data "azurerm_client_config" "current" {} \ No newline at end of file +data "azurerm_client_config" "current" {}