Skip to content

Commit 10249ea

Browse files
fix: fixed issue with endpoint being passed to the ibm_database_connection resource (#144)
Co-authored-by: [email protected] <[email protected]> Co-authored-by: Conall Ó Cofaigh <[email protected]>
1 parent ee41d66 commit 10249ea

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
@@ -210,7 +210,7 @@ locals {
210210
}
211211

212212
data "ibm_database_connection" "database_connection" {
213-
endpoint_type = var.service_endpoints
213+
endpoint_type = var.service_endpoints == "public-and-private" ? "public" : var.service_endpoints
214214
deployment_id = ibm_database.elasticsearch.id
215215
user_id = ibm_database.elasticsearch.adminuser
216216
user_type = "database"

0 commit comments

Comments
 (0)