databricks_repo Resource

This resource allows you to manage Databricks Git folders (formerly known as Databricks Repos).

Example Usage

You can declare Terraform-managed Git folder by specifying url attribute of Git repository. In addition to that you may need to specify git_provider attribute if Git provider doesn't belong to cloud Git providers (Github, GitLab, ...). If path attribute isn't provided, then Git folder will be created in the default location:

resource "databricks_repo" "nutter_in_home" {
  url = "https://github.com/user/demo.git"
}

Argument Reference

The following arguments are supported:

sparse_checkout

Optional sparse_checkout configuration block contains attributes related to sparse checkout feature in Databricks Git folders. It supports following attributes:

Addition or removal of the sparse_checkout configuration block will lead to recreation of the Git folder.

Attribute Reference

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

Access Control

Import

The resource can be imported using the Git folder ID (obtained via UI or using API)

$ terraform import databricks_repo.this repo_id

The following resources are often used in the same context: