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 III

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>

 

 

 

 

2 REPLIES 2

jennie258fitz
New Contributor III

@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!

databricks_account_group resource not present 
The provider databricks/databricks does not support resource type "databricks_account_group".

My requirement is to assign an account-level group to a workspace-level group.

For example, I have a group named ABC at the account level. Now, I need to use the same group at the workspace level using Terraform code.

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