subcategory |
---|
Security |
This resource allows you to attach users, service_principal, and groups as group members.
To attach members to groups in the Databricks account, the provider must be configured with host = "https://accounts.cloud.databricks.com"
on AWS deployments or host = "https://accounts.azuredatabricks.net"
and authenticate using AAD tokens on Azure deployments
After the following example, Bradley would have direct membership in group B and transitive membership in group A.
resource "databricks_group" "a" {
display_name = "A"
}
resource "databricks_group" "b" {
display_name = "B"
}
resource "databricks_group_member" "ab" {
group_id = databricks_group.a.id
member_id = databricks_group.b.id
}
resource "databricks_user" "bradley" {
user_name = "bradley@example.com"
}
resource "databricks_group_member" "bb" {
group_id = databricks_group.b.id
member_id = databricks_user.bradley.id
}
The following arguments are supported:
group_id
- (Required) This is the id of the group resource.member_id
- (Required) This is the id of the group, service principal, or user.
In addition to all arguments above, the following attributes are exported:
id
- The id for thedatabricks_group_member
object which is in the format<group_id>|<member_id>
.
You can import a databricks_group_member
resource with name my_group_member
like the following:
$ terraform import databricks_group_member.my_group_member "<group_id>|<member_id>"
The following resources are often used in the same context:
- End to end workspace management guide.
- databricks_group to manage groups in Databricks Workspace or Account Console (for AWS deployments).
- databricks_group data to retrieve information about databricks_group members, entitlements and instance profiles.
- databricks_group_instance_profile to attach databricks_instance_profile (AWS) to databricks_group.
- databricks_ip_access_list to allow access from predefined IP ranges.
- databricks_service_principal to grant access to a workspace to an automation tool or application.
- databricks_user to manage users, that could be added to databricks_group within the workspace.
- databricks_user data to retrieve information about databricks_user.
- databricks_user_instance_profile to attach databricks_instance_profile (AWS) to databricks_user.