Skip to content

Commit

Permalink
change sku type for PG server + remove numeric from username
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand de Baecque <[email protected]>
  • Loading branch information
Ferdinanddb committed Jun 8, 2024
1 parent 2757e66 commit da0a707
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions terraform/modules/azure/postgres-flex-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/azure/postgres-flex-server/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit da0a707

Please sign in to comment.