Skip to content

Commit 4598ca1

Browse files
Refines PostgreSQL configuration and variables
Signed-off-by: PhanikumarThodupunoori <[email protected]>
1 parent 1f27f3d commit 4598ca1

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

examples/sample-input.tfvars

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ tags = {} # e.g., { "key1" = "value1", "key2" = "value2" }
2424
# block below.
2525
postgres_servers = {
2626
default = {
27-
server_version = "16" # Specify PostgreSQL version here
28-
machine_type = "db-custom-4-15360" # Specify the machine type here
29-
edition = "ENTERPRISE_PLUS" # Specify the edition here (e.g., ENTERPRISE, ENTERPRISE_PLUS)
27+
server_version = "" # Specify PostgreSQL version here
28+
machine_type = "" # Specify the machine type here
29+
edition = "" # Specify the edition here (e.g., ENTERPRISE, ENTERPRISE_PLUS)
3030
}
3131
},
3232

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ module "postgresql" {
256256
deletion_protection = false
257257
module_depends_on = [google_service_networking_connection.private_vpc_connection]
258258

259-
edition = (
259+
edition = (
260260
tonumber(each.value.server_version) >= 16 && each.value.edition != "ENTERPRISE_PLUS"
261261
) || (
262262
tonumber(each.value.server_version) < 16 && each.value.edition != "ENTERPRISE"

variables.tf

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -362,14 +362,14 @@ variable "cluster_autoscaling_profile" {
362362
default = "BALANCED"
363363
}
364364

365-
# QL
365+
# # PostgreSQL
366366

367367
# Defaults
368368
variable "postgres_server_defaults" {
369369
description = "default values for a postgres server"
370370
type = any
371371
default = {
372-
machPostgreSine_type = "db-custom-4-16384"
372+
machine_type = "db-custom-4-16384"
373373
storage_gb = 128
374374
backups_enabled = true
375375
backups_start_time = "21:00"
@@ -591,9 +591,3 @@ variable "cluster_node_pool_mode" {
591591
type = string
592592
default = "default"
593593
}
594-
595-
variable "edition" {
596-
description = "The edition of the PostgreSQL instance (ENTERPRISE or ENTERPRISE_PLUS)."
597-
type = string
598-
default = null
599-
}

0 commit comments

Comments
 (0)