Skip to content

Commit 9bd9112

Browse files
authored
clarify necessity of Git token for private repositories (#1046)
1 parent c80c9cc commit 9bd9112

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/resources/repo.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ subcategory: "Workspace"
55

66
This resource allows you to manage [Databricks Repos](https://docs.databricks.com/repos.html).
77

8+
-> **Note** To create a Repo from a private repository you need to configure Git token as described in the [documentation](https://docs.databricks.com/repos.html#configure-your-git-integration-with-databricks). **Right now this is possible only via Databricks UI due lack of corresponding REST API**. For the same reason, it also doesn't work for Service Principals.
9+
810
## Example Usage
911

1012
You can declare Terraform-managed Repo 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 repo will be created in the user's repo directory (`/Repos/<username>/...`):

0 commit comments

Comments
 (0)