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.
Create service principal secret
resource "databricks_service_principal_secret" "terraform_sp" {
service_principal_id = databricks_service_principal.this.id
}
The following arguments are available:
service_principal_id
- ID of the databricks_service_principal (not application ID).In addition to all arguments above, the following attributes are exported:
id
- ID of the secretsecret
- Generated secret for the service principalThe following resources are often used in the same context: