From e049bb1d230da7b67525fbf92fb04fc937c838bf Mon Sep 17 00:00:00 2001 From: cka-y Date: Wed, 18 Dec 2024 10:14:52 -0500 Subject: [PATCH] fix: instance url --- infra/postgresql/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/postgresql/main.tf b/infra/postgresql/main.tf index c02b669d9..170b55679 100644 --- a/infra/postgresql/main.tf +++ b/infra/postgresql/main.tf @@ -106,7 +106,7 @@ resource "google_secret_manager_secret" "secret_db_url" { resource "google_secret_manager_secret_version" "secret_version" { secret = google_secret_manager_secret.secret_db_url.id - secret_data = "postgresql:+psycopg2//${var.postgresql_user_name}:${var.postgresql_user_password}@${google_sql_database_instance.db.private_ip_address}/${var.postgresql_database_name}" + secret_data = "postgresql+psycopg2://${var.postgresql_user_name}:${var.postgresql_user_password}@${google_sql_database_instance.db.private_ip_address}/${var.postgresql_database_name}" } output "instance_address" {