From da0a7079d1d7ee65e25df6c8d988ec3fb3e78a8b Mon Sep 17 00:00:00 2001 From: Ferdinand de Baecque <45566171+Ferdinanddb@users.noreply.github.com> Date: Sat, 8 Jun 2024 18:55:06 +0200 Subject: [PATCH] change sku type for PG server + remove numeric from username Signed-off-by: Ferdinand de Baecque <45566171+Ferdinanddb@users.noreply.github.com> --- terraform/main.tf | 2 +- terraform/modules/azure/postgres-flex-server/main.tf | 10 +++++----- terraform/modules/azure/postgres-flex-server/vars.tf | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/terraform/main.tf b/terraform/main.tf index 5ffb3fe..1b5d4a4 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -271,7 +271,7 @@ module "azurerm_postgres_flexible_server" { unique_project_name = var.unique_project_name postgres_runtime_version = "14" - postgres_sku_name = "GP_Standard_D2s_v3" + postgres_sku_name = "B_Standard_B1ms" postgres_storage_mb = 32768 postgres_database_name = "test_db" diff --git a/terraform/modules/azure/postgres-flex-server/main.tf b/terraform/modules/azure/postgres-flex-server/main.tf index 6e621de..b6fe5b8 100644 --- a/terraform/modules/azure/postgres-flex-server/main.tf +++ b/terraform/modules/azure/postgres-flex-server/main.tf @@ -20,11 +20,11 @@ resource "random_password" "admin_password" { } resource "random_string" "admin_username" { - length = 8 - special = false - min_lower = 1 - min_numeric = 1 - min_upper = 1 + length = 8 + special = false + numeric = false + min_lower = 1 + min_upper = 1 } resource "azurerm_postgresql_flexible_server" "postgres_flex_server" { diff --git a/terraform/modules/azure/postgres-flex-server/vars.tf b/terraform/modules/azure/postgres-flex-server/vars.tf index dac99ba..7f99c90 100644 --- a/terraform/modules/azure/postgres-flex-server/vars.tf +++ b/terraform/modules/azure/postgres-flex-server/vars.tf @@ -22,7 +22,7 @@ variable "postgres_runtime_version" { variable "postgres_sku_name" { type = string description = "The SKU Name for the PostgreSQL Flexible Server" - default = "GP_Standard_D2s_v3" + default = "B_Standard_B1ms" } variable "postgres_storage_mb" {