Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 2.02 KB

service_principal_role.md

File metadata and controls

52 lines (35 loc) · 2.02 KB
subcategory
Security

databricks_service_principal_role Resource

This resource allows you to attach a role or databricks_instance_profile (AWS) to a databricks_service_principal.

Example Usage

Granting a service principal access to an instance profile

resource "databricks_instance_profile" "instance_profile" {
  instance_profile_arn = "my_instance_profile_arn"
}

resource "databricks_service_principal" "this" {
  display_name = "My Service Principal"
}

resource "databricks_service_principal_role" "my_service_principal_instance_profile" {
  service_principal_id = databricks_service_principal.this.id
  role                 = databricks_instance_profile.instance_profile.id
}

Argument Reference

The following arguments are supported:

Attribute Reference

In addition to all arguments above, the following attributes are exported:

  • id - The id in the format <service_principal_id>|<role>.

Import

-> Note Importing this resource is not currently supported.

Related Resources

The following resources are often used in the same context: