Skip to content

Commit

Permalink
fix: ref correct local for tf-db-login submod
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtoj committed Sep 29, 2023
1 parent 86cfc61 commit 9cc31ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/teleport-db-login/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
locals {
db_connection_info = data.external.db_connection_info.result
db_connection_host = module.this.enabled ? local.db_config["host"] : ""
db_connection_port = module.this.enabled ? local.db_config["port"] : ""
db_connection_ssl_ca = module.this.enabled ? local.db_config["ca"] : ""
db_connection_ssl_cert = module.this.enabled ? local.db_config["cert"] : ""
db_connection_ssl_key = module.this.enabled ? local.db_config["key"] : ""
db_connection_host = module.this.enabled ? local.db_connection_info["host"] : ""
db_connection_port = module.this.enabled ? local.db_connection_info["port"] : ""
db_connection_ssl_ca = module.this.enabled ? local.db_connection_info["ca"] : ""
db_connection_ssl_cert = module.this.enabled ? local.db_connection_info["cert"] : ""
db_connection_ssl_key = module.this.enabled ? local.db_connection_info["key"] : ""
}

data "external" "db_connection_info" {
Expand Down

0 comments on commit 9cc31ef

Please sign in to comment.