Skip to content

Commit 980ce16

Browse files
authored
fix: Postgres port conditional adjustment (#362)
Co-authored-by: magreenbaum <magreenbaum>
1 parent 5222530 commit 980ce16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ data "aws_partition" "current" {}
33
locals {
44
create_cluster = var.create_cluster && var.putin_khuylo
55

6-
port = coalesce(var.port, (var.engine == "aurora-postgresql" ? 5432 : 3306))
6+
port = coalesce(var.port, (var.engine == "aurora-postgresql" || var.engine == "postgres" ? 5432 : 3306))
77

88
internal_db_subnet_group_name = try(coalesce(var.db_subnet_group_name, var.name), "")
99
db_subnet_group_name = var.create_db_subnet_group ? try(aws_db_subnet_group.this[0].name, null) : local.internal_db_subnet_group_name

0 commit comments

Comments
 (0)