Skip to content

Commit ec31da3

Browse files
Updates PostgreSQL default machine types
Signed-off-by: PhanikumarThodupunoori <[email protected]>
1 parent 4598ca1 commit ec31da3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/CONFIG-VARS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ postgres_servers = {
270270
**NOTE**: The `default = {}` elements is always required when creating external databases. This is the systems default database server.
271271

272272
Each server element, like `foo = {}`, can contain none, some, or all of the parameters listed below. If `machine_type` or `edition` are not provided, default values will be applied based on the `server_version`. For example:
273-
- If `server_version >= 16`, defaults to `edition = "ENTERPRISE_PLUS"` and `machine_type = "db-perf-optimized-N-8"`
274-
- If `server_version < 16`, defaults to `edition = "ENTERPRISE"` and `machine_type = "db-custom-2-7680"`
273+
- If `server_version >= 16`, defaults to `edition = "ENTERPRISE_PLUS"` and `machine_type = "db-perf-optimized-N-*"`
274+
- If `server_version < 16`, defaults to `edition = "ENTERPRISE"` and `machine_type = "db-custom-*"`
275275

276276
| Name | Description | Type | Default | Notes |
277277
| :--- | ---: | ---: | ---: | ---: |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ tier = (
269269
) || (
270270
tonumber(each.value.server_version) < 16 && !can(regex("^db-custom-", each.value.machine_type))
271271
) ? (
272-
tonumber(each.value.server_version) >= 16 ? "db-perf-optimized-N-8" : "db-custom-2-7680"
272+
tonumber(each.value.server_version) >= 16 ? "db-perf-optimized-N-8" : "db-custom-4-16384"
273273
) : each.value.machine_type
274274

275275
disk_size = each.value.storage_gb

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ variable "cluster_autoscaling_profile" {
362362
default = "BALANCED"
363363
}
364364

365-
# # PostgreSQL
365+
# PostgreSQL
366366

367367
# Defaults
368368
variable "postgres_server_defaults" {

0 commit comments

Comments
 (0)