Skip to content

Commit 90aedbb

Browse files
authored
fix: endpoint_type logic for db connection data block (#49) <br> * db connection data block will now use "public" endpoint type if "public-and-private" service endpoints was supplied
1 parent 8722c02 commit 90aedbb

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
@@ -218,7 +218,7 @@ locals {
218218
}
219219

220220
data "ibm_database_connection" "database_connection" {
221-
endpoint_type = var.service_endpoints
221+
endpoint_type = var.service_endpoints == "public-and-private" ? "public" : var.service_endpoints
222222
deployment_id = ibm_database.mysql_db.id
223223
user_id = ibm_database.mysql_db.adminuser
224224
user_type = "database"

0 commit comments

Comments
 (0)