File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
locals {
2
- secret_scope_object = {
3
- value = [for param in var . secret_scope : {
4
- scope_name = databricks_secret_scope.this[param.scope_name].name
5
- acl = param.acl
6
- } if param . acl != null ]
7
- }
8
-
9
- secrets_acl_objects_list = flatten ([for param in local . secret_scope_object : [
2
+ # secret_scope_object = {
3
+ # value = [for param in var.secret_scope : {
4
+ # scope_name = databricks_secret_scope.this[param.scope_name].name
5
+ # acl = param.acl
6
+ # } if param.acl != null]
7
+ # }
8
+
9
+ secrets_acl_objects_list = flatten ([for param in var . secret_scope : [
10
10
for permission in param . acl : {
11
11
scope = param . scope_name , principal = permission . principal , permission = permission . permission
12
12
}] if param . acl != null
@@ -50,7 +50,7 @@ resource "databricks_permissions" "sql_endpoint" {
50
50
resource "databricks_secret_acl" "this" {
51
51
for_each = { for entry in local . secrets_acl_objects_list : " ${ entry . scope } .${ entry . principal } .${ entry . permission } " => entry }
52
52
53
- scope = each. value . scope
53
+ scope = databricks_secret_scope . this [ each . value . scope ] . name
54
54
principal = databricks_group. this [each . value . principal ]. display_name
55
55
permission = each. value . permission
56
56
}
You can’t perform that action at this time.
0 commit comments