databricks / terraform-provider-databricks

Databricks Terraform Provider
https://registry.terraform.io/providers/databricks/databricks/latest
Other
456 stars 393 forks source link

[ISSUE] Issue with `databricks_group` data object on account level #2788

Open dsfrederic opened 1 year ago

dsfrederic commented 1 year ago

Configuration


provider "databricks" {
  alias      = "account"
  host       = "https://accounts.azuredatabricks.net"
  account_id = "XXX-XXXXXXXXX"
}

data "databricks_group" "admin_groups_account" {
  provider     = databricks.account
  display_name = "XXXXX-XXXXX-XXXXXX"
}

Expected Behavior

Retrieve user group from account level.

Actual Behavior

Error occured

| Error: Get "[https://accounts.azuredatabricks.net/api/2.0/accounts/<account_id_filled_in>/scim/v2/Groups?filter=displayName%20eq%20%27XXXXX-XXXXX-XXXXXX%27"](https://accounts.azuredatabricks.net/api/2.0/accounts/%3Caccount_id_filled_in%3E/scim/v2/Groups?filter=displayName%20eq%20%27XXXXX-XXXXX-XXXXXX%27%22): EOF
│
│   with data.databricks_group.admin_groups_account,
│   on databricks.tf line 5, in data "databricks_group" "admin_groups_account":
│    5: data "databricks_group" "admin_groups_account" {
│

Steps to Reproduce

Important Factoids

jacovg91 commented 1 year ago

What version of the databricks provider are you using? I'm not able to reproduce this.