cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to assign account level groups to workspace using, Terraform

chethankumar
New Contributor

in the workspace console when I create groups it creates a source as an account, 
Basically, it is a account level group, But 

 

 

 

provider "databricks" {
  host          = var.databricks_host
  # client_id     = ""
  # client_secret = "
  account_id = ""
  alias = "abc"
}
resource "databricks_group" "group" {
  display_name = "abc"
  provider = databricks.abc
}<div><span>It creates workspace level groups, </span></div>

 

 

 

 

1 REPLY 1

jennie258fitz
New Contributor II

@chethankumar wrote:

in the workspace console when I create groups it creates a source as an account, 
Basically, it is a account level group, But 

 

 

 

 

provider "databricks" {
  host          = var.databricks_host
  # client_id     = ""
  # client_secret = "
  account_id = ""
  alias = "abc"
}
resource "databricks_group" "group" {
  display_name = "abc"
  provider = databricks.abc
}<div><span>It creates workspace level groups, </span></div>

 

 

 

 

 


It seems you are facing an issue where creating groups in Databricks results in workspace-level groups instead of the intended account-level groups. To resolve this, you need to ensure that your Terraform configuration is set up correctly. First, in the provider configuration, make sure to include the account_id, which is essential for creating account-level resources. Then, when defining the resource, instead of using databricks_group, you should use databricks_account_group to specify that you want to create an account-level group. For example, your provider block should include the host and account ID, and the resource block should be defined as databricks_account_group with the desired display name. By implementing these changes, you should be able to successfully create account-level groups. If you have further questions or need additional assistance, feel free to ask!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group