databricks_git_credential Resource

This resource allows you to manage credentials for Databricks Repos using Git Credentials API.

Example Usage

You can declare Terraform-managed Git credential using following code:

resource "databricks_git_credential" "ado" {
  git_username          = "myuser"
  git_provider          = "azureDevOpsServices"
  personal_access_token = "sometoken"
}

Argument Reference

The following arguments are supported:

Attribute Reference

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

Import

The resource cluster can be imported using ID of Git credential that could be obtained via REST API:

terraform import databricks_git_credential.this <git-credential-id>

The following resources are often used in the same context: