cloudposse / terraform-aws-rds-cluster

Terraform module to provision an RDS Aurora cluster for MySQL or Postgres
https://cloudposse.com/accelerate
Apache License 2.0
145 stars 172 forks source link

db_port not working as expected #120

Closed User-nehag closed 3 months ago

User-nehag commented 3 years ago

db_port = 5454 I have defined db_port value as 5454 in .hcl file but after applying, RDS Instances(reader and writer) are created with port 5432. I am using below RDS configuration engine = "aurora-postgresql" engine_version = "10.14" cluster_family = "aurora-postgresql10"

nitrocode commented 2 years ago

Can you try something like this ?

module "rds_cluster_aurora_postgres" {
  source = "cloudposse/rds-cluster/aws"
  # Cloud Posse recommends pinning every module to a specific version
  # version     = "x.x.x"

  name = "postgres"

  engine         = "aurora-postgresql"
  engine_version = "10.14"
  cluster_family = "aurora-postgresql10"
  db_port        = 5432
}
ekristen commented 1 year ago

@nitrocode db_port doesn't actually seem to modify the rds_cluster instance only the security groups.