Skip to content

Commit 5d88773

Browse files
authored
fix: fixed issue with endpoint being passed to the ibm_database_connection resource (#400)
Co-authored-by: kierra.searle@ibm.com <kierra.searle@ibm.com>
1 parent 4580758 commit 5d88773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ locals {
247247
}
248248

249249
data "ibm_database_connection" "database_connection" {
250-
endpoint_type = var.service_endpoints
250+
endpoint_type = var.service_endpoints == "public-and-private" ? "public" : var.service_endpoints
251251
deployment_id = ibm_database.postgresql_db.id
252252
user_id = ibm_database.postgresql_db.adminuser
253253
user_type = "database"

0 commit comments

Comments
 (0)