Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.59 KB

service_principal_secret.md

File metadata and controls

41 lines (25 loc) · 1.59 KB
subcategory
Security

databricks_service_principal_secret Resource

-> Note This resource can only be used with an account-level provider.

With this resource you can create a secret for a given Service Principals.

This secret can be used to configure the Databricks Terraform Provider to authenticate with the service principal. See Authenticating with service principal.

Additionally, the secret can be used to request OAuth tokens for the service principal, which can be used to authenticate to Databricks REST APIs. See Authentication using OAuth tokens for service principals.

Example Usage

Create service principal secret

resource "databricks_service_principal_secret" "terraform_sp" {
  service_principal_id = databricks_service_principal.this.id
}

Argument Reference

The following arguments are available:

Attribute Reference

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

  • id - ID of the secret
  • secret - Generated secret for the service principal

Related Resources

The following resources are often used in the same context: