Skip to content
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

[ISSUE] cannot create group #913

Open
karthikarnm opened this issue May 7, 2024 · 0 comments
Open

[ISSUE] cannot create group #913

karthikarnm opened this issue May 7, 2024 · 0 comments

Comments

@karthikarnm
Copy link

karthikarnm commented May 7, 2024

// 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" {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant