Skip to content

Commit

Permalink
Merge branch 'main' into tborisova/change-predefined-metric-name
Browse files Browse the repository at this point in the history
  • Loading branch information
tanya-borisova authored Feb 13, 2024
2 parents 7c7bf4c + 777f5e6 commit 85abebd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions infrastructure/transform/databricks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ resource "databricks_cluster" "cluster" {
}),
# Secrets for FlowEHR External app
tomap({
"spark.secret.azure-tenant-id" = "{{secrets/${databricks_secret_scope.secrets.name}/${databricks_secret.external_connection_azure_tenant_id.key}}}"
"spark.secret.external-connection-app-id" = "{{secrets/${databricks_secret_scope.secrets.name}/${databricks_secret.external_connection_spn_app_id.key}}}"
"spark.secret.exernal-connection-app-secret" = "{{secrets/${databricks_secret_scope.secrets.name}/${databricks_secret.external_connection_spn_app_secret.key}}}"
}),
Expand Down
6 changes: 6 additions & 0 deletions infrastructure/transform/secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ resource "databricks_secret" "flowehr_databricks_sql_database" {
}

# FlowEHR external app secrets
resource "databricks_secret" "external_connection_azure_tenant_id" {
key = "flowehr-azure-tenant-id"
string_value = azuread_service_principal.flowehr_external_connection.application_tenant_id
scope = databricks_secret_scope.secrets.id
}

resource "databricks_secret" "external_connection_spn_app_id" {
key = "flowehr-external-connection-app-id"
string_value = azuread_service_principal.flowehr_external_connection.application_id
Expand Down

0 comments on commit 85abebd

Please sign in to comment.