Skip to content

Commit

Permalink
fix: Postgres port conditional adjustment (#362)
Browse files Browse the repository at this point in the history
Co-authored-by: magreenbaum <magreenbaum>
  • Loading branch information
magreenbaum authored Apr 4, 2023
1 parent 5222530 commit 980ce16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ data "aws_partition" "current" {}
locals {
create_cluster = var.create_cluster && var.putin_khuylo

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

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

0 comments on commit 980ce16

Please sign in to comment.