File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ locals {
1818 (var. sp_client_id_secret_name ) = { value = data.azurerm_key_vault_secret.sp_client_id.value }
1919 (var. sp_key_secret_name ) = { value = data.azurerm_key_vault_secret.sp_key.value }
2020 })
21- secret_scope_name = var. use_local_secret_scope ? databricks_secret_scope. this [0 ]. name : " main"
22- mount_secret_name = var. use_local_secret_scope ? databricks_secret. this [var . sp_key_secret_name ]. key : data. azurerm_key_vault_secret . sp_key . name
2321}
2422
2523resource "databricks_token" "pat" {
Original file line number Diff line number Diff line change 1+ locals {
2+ secret_scope_name = var. use_local_secret_scope ? databricks_secret_scope. this [0 ]. name : " main"
3+ mount_secret_name = var. use_local_secret_scope ? databricks_secret. this [var . sp_key_secret_name ]. key : data. azurerm_key_vault_secret . sp_key . name
4+ }
15resource "databricks_secret_scope" "this" {
26 count = var. use_local_secret_scope ? 1 : 0
37
@@ -11,4 +15,6 @@ resource "databricks_secret" "this" {
1115 key = each. key
1216 string_value = each. value [" value" ]
1317 scope = databricks_secret_scope. this [0 ]. id
18+
19+ depends_on = [databricks_secret_scope . this ]
1420}
You can’t perform that action at this time.
0 commit comments