File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ resource "databricks_permissions" "clusters" {
25
25
lifecycle {
26
26
precondition {
27
27
condition = alltrue ([for i in each . value . permissions : contains (var. iam_account_groups [* ]. group_name , i. group_name )])
28
- error_message = " Incorrect group_name set for permission cluster settings"
28
+ error_message = " Incorrect group_name set for permission 'databricks_cluster_configs' settings"
29
29
}
30
30
}
31
31
}
@@ -49,7 +49,7 @@ resource "databricks_permissions" "sql_endpoint" {
49
49
lifecycle {
50
50
precondition {
51
51
condition = alltrue ([for i in each . value . permissions : contains (var. iam_account_groups [* ]. group_name , i. group_name )])
52
- error_message = " Incorrect group_name set for permission cluster settings"
52
+ error_message = " Incorrect group_name set for permission 'databricks_sql_endpoint' settings"
53
53
}
54
54
}
55
55
}
@@ -63,8 +63,8 @@ resource "databricks_secret_acl" "this" {
63
63
64
64
lifecycle {
65
65
precondition {
66
- condition = alltrue ([for i in each . value . permissions : contains (var. iam_account_groups [* ]. group_name , i . group_name )])
67
- error_message = " Incorrect group_name set for permission cluster settings"
66
+ condition = alltrue ([contains (var. iam_account_groups [* ]. group_name , each . value . principal )])
67
+ error_message = " Incorrect principal set for acl databricks_secret_scope settings"
68
68
}
69
69
}
70
70
}
You can’t perform that action at this time.
0 commit comments