Skip to content

Commit

Permalink
fix(postgresql): correct read_host
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed Apr 24, 2024
1 parent 1d53dac commit 8a373e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/postgresql/gcp/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ output "creds" {
conn = "postgres://${module.database[db].user}:${module.database[db].password}@${google_sql_database_instance.instance.private_ip_address}:5432/${db}"
read_conn = local.provision_read_replica ? "postgres://${module.database[db].user}:${module.database[db].password}@${google_sql_database_instance.replica[0].private_ip_address}:5432/${db}" : ""
host = google_sql_database_instance.instance.private_ip_address
read_host = local.provision_read_replica ? google_sql_database_instance.instance.private_ip_address : ""
read_host = local.provision_read_replica ? google_sql_database_instance.replica[0].private_ip_address : ""
}
}
sensitive = true
Expand Down

0 comments on commit 8a373e9

Please sign in to comment.