how to assign account level groups to workspace using, Terraform
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2024 04:10 AM
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>
- Labels:
-
Workflows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2024 05:04 AM
@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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2024 02:59 AM
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.

