databricks-sdk-go
databricks-sdk-go copied to clipboard
[ISSUE] cannot create group
// initialize provider at account-level
provider "databricks" { alias = "accounts" account_id = "**********************" host = "https://db.com" client_id = "*******************d-9a8c-b5ebc738f82d" client_secret = "*9588ada6c" }
resource "databricks_group" "this" { provider = databricks.accounts display_name = "terra_Group" allow_cluster_create = true }
Error: cannot create group: unexpected error handling request: invalid character 'h' looking for beginning of value. This is likely a bug in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-go/issues. Request log:
│ │ POST /api/2.0/preview/scim/v2/Groups │ > * Host: │ > * Accept: application/json │ > * Authorization: REDACTED │ > * Content-Type: application/scim+json; charset=utf-8 │ > * User-Agent: databricks-tf-provider/1.39.0 databricks-sdk-go/0.37.0 go/1.21.8 os/windows terraform/1.7.3 resource/group auth/oauth-m2m │ > { │ > "displayName": "terra_Group", │ > "entitlements": [ │ > { │ > "value": "allow-cluster-create" │ > } │ > ], │ > "schemas": [ │ > "urn:ietf:params:scim:schemas:core:2.0:Group" │ > ] │ > } │ < HTTP/2.0 403 Forbidden │ < * Content-Type: application/json │ < * Date: Tue, 7 May 2024 09:02:15 GMT │ < * Server: databricks │ < * Strict-Transport-Security: max-age=31536000; includeSubDomains; preload │ < * Vary: Accept-Encoding │ < * X-Content-Type-Options: nosniff │ < * X-Databricks-Org-Id: 1466749106978093 │ < * X-Databricks-Reason-Phrase: https://dbc-957e5254-9ecc.cloud.databricks.com/api/2.0/preview/scim/v2/Groups is only accessible by admins. │ < https://dbc-957e5254-9ecc.cloud.databricks.com/api/2.0/preview/scim/v2/Groups is only accessible by admins. │
│
│ with module.group.databricks_group.this,
│ on modules\group\main.tf line 10, in resource "databricks_group" "this":
│ 10: resource "databricks_group" "this" {
│