-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Extends the attribute of the databricks_group data source #1085
Comments
@Kloty there's we won't change the datatype of |
@nfx However, if you put the wrong |
AFAIK, there is no way to distinguish member's type from the data "databricks_group" "admins" {
display_name = "admins"
members_type = "USER"
}
data "databricks_group" "admins" {
display_name = "admins"
members_type = "GROUP"
} |
could you specify that error? |
It's an error similar to the following. Full hcl code is similar to the following. data "databricks_group" "this" {
display_name = "some group name"
}
data "databricks_user" "department_members" {
for_each = data.databricks_group.this.members
user_id = each.value
}
|
Like the |
@Kloty it's a separate feature request :) there are two ways of getting your feature request implemented sooner: have plenty of customers asking for it or making a pull request. features are prioritised by two things: number of customers requesting that and complexity of implementation - often it makes very little sense to implement something just for one customer. if you decide to to send a pull request - we'll guide and align you through reviews. |
Ok, I understand what you're saying. I want to go back to your question. For |
# Version changelog ## 0.4.9 * Prevent creation of `databricks_group` with `users` and `admins` reserved names ([#1089](#1089)). * Added support for shared clusters in multi-task `databricks_job` ([#1082](#1082)). * Added diff suppression for `external_id` in `databricks_group` ([#1099](#1099)). * Added diff suppression for `external_id` in `databricks_user` ([#1097](#1097)). * Added `users`, `service_principals`, and `child_groups` exported properties to `databricks_group` data resource ([#1085](#1085)). * Added various documentation improvements.
* Release v0.4.9 # Version changelog ## 0.4.9 * Prevent creation of `databricks_group` with `users` and `admins` reserved names ([#1089](#1089)). * Added support for shared clusters in multi-task `databricks_job` ([#1082](#1082)). * Added diff suppression for `external_id` in `databricks_group` ([#1099](#1099)). * Added diff suppression for `external_id` in `databricks_user` ([#1097](#1097)). * Added `users`, `service_principals`, and `child_groups` exported properties to `databricks_group` data resource ([#1085](#1085)). * Added various documentation improvements.
* Release v0.4.9 # Version changelog ## 0.4.9 * Prevent creation of `databricks_group` with `users` and `admins` reserved names ([databricks#1089](databricks#1089)). * Added support for shared clusters in multi-task `databricks_job` ([databricks#1082](databricks#1082)). * Added diff suppression for `external_id` in `databricks_group` ([databricks#1099](databricks#1099)). * Added diff suppression for `external_id` in `databricks_user` ([databricks#1097](databricks#1097)). * Added `users`, `service_principals`, and `child_groups` exported properties to `databricks_group` data resource ([databricks#1085](databricks#1085)). * Added various documentation improvements.
Currently, the
members
field of thedatabricks_group
data source holds not only the user id but also the sub-group id. (Unlike the document, thegroups
field actually represents the parent group to which the group belongs.)The corresponding data source uses SCIM Group API, and it also returns the user id and sub-group id by putting them in the same
members
field. The following is the part of response of SCIM Groups API.My suggestion is to expand the
databricks_group
data source to put the entire object of response as well as the id of the resource in themembers
field and parse the ref field to add type, or add the ref field as it is so that the user can parse.Current Behavior
Expected Behavior 1
Expected Behavior 2
The text was updated successfully, but these errors were encountered: