Skip to content

Commit 265582f

Browse files
committed
fixed the instance url
1 parent 2aec616 commit 265582f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infra/postgresql/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ resource "google_secret_manager_secret" "secret_db_url" {
106106

107107
resource "google_secret_manager_secret_version" "secret_version" {
108108
secret = google_secret_manager_secret.secret_db_url.id
109-
secret_data = "postgresql:+psycopg2//${var.postgresql_user_name}:${var.postgresql_user_password}@${google_sql_database_instance.db.private_ip_address}/${var.postgresql_database_name}"
109+
secret_data = "postgresql+psycopg2://${var.postgresql_user_name}:${var.postgresql_user_password}@${google_sql_database_instance.db.private_ip_address}/${var.postgresql_database_name}"
110110
}
111111

112112
output "instance_address" {

0 commit comments

Comments
 (0)