Skip to content

[ISSUE] Issue with databricks_group data source "child_groups" attribute #5447

@huangzhi19921023-glitch

Description

@huangzhi19921023-glitch

Configuration

variable "principals" {
  default = [
    "groupA",
    "groupB"
  ]
}
data "databricks_group" "group" {
  provider     = databricks.account
  for_each     = toset(var.principals)
  display_name = each.value
}

output "test" {
value = data.databricks_group.group
}

Expected Behavior

the "child_groups" should match the real child groups, e.g. empty:

Changes to Outputs:

  • test = {
    • groupA = {
      • acl_principal_id = "groups/groupA"
      • allow_cluster_create = false
      • allow_instance_pool_create = false
      • child_groups = []

for v1.88.0, the child groups were correct.

Actual Behavior

Since v1.89.0, "child_groups" returns 7000+ in our case:
Changes to Outputs:
+ test = {
+ groupA = {
+ acl_principal_id = "groups/groupA"
+ allow_cluster_create = false
+ allow_instance_pool_create = false
+ child_groups = [
+ "149733170292722",
+ "150582989695714",

Most child group ids do not exist in our account

Terraform and provider versions

Terraform v1.5.7
provider registry.terraform.io/databricks/databricks v1.89.0

Is it a regression?

Yes. It worked on v1.88 and not working since v1.89

Would you like to implement a fix?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions