Skip to content

Commit d4909df

Browse files
authored
Merge pull request #215 from dbt-labs/fix-example-repos
Update example for GitLab
2 parents 8e4034d + 0db9df9 commit d4909df

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

docs/resources/repository.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ resource "dbtcloud_repository" "github_repo_other" {
6363
### repo cloned via the GitLab integration
6464
# as of 15 Sept 2023 this resource requires using a user token and can't be set with a service token - CC-791
6565
resource "dbtcloud_repository" "gitlab_repo" {
66-
project_id = dbtcloud_project.dbt_project.id
67-
remote_url = "<gitlab-group>/<gitlab-project>"
68-
gitlab_project_id = 8765
66+
project_id = dbtcloud_project.dbt_project.id
67+
remote_url = "<gitlab-group>/<gitlab-project>"
68+
gitlab_project_id = 8765
69+
git_clone_strategy = "deploy_token"
6970
}
7071
7172
@@ -77,7 +78,7 @@ resource "dbtcloud_repository" "deploy_repo" {
7778
}
7879
7980
80-
### repo cloned via the Azure Dev Ops native integration
81+
### repo cloned via the Azure Dev Ops integration
8182
resource "dbtcloud_repository" "ado_repo" {
8283
project_id = dbtcloud_project.dbt_project.id
8384
# the following values can be added manually (IDs can be retrieved from the ADO API) or via data sources

examples/resources/dbtcloud_repository/resource.tf

+4-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ resource "dbtcloud_repository" "github_repo_other" {
3737
### repo cloned via the GitLab integration
3838
# as of 15 Sept 2023 this resource requires using a user token and can't be set with a service token - CC-791
3939
resource "dbtcloud_repository" "gitlab_repo" {
40-
project_id = dbtcloud_project.dbt_project.id
41-
remote_url = "<gitlab-group>/<gitlab-project>"
42-
gitlab_project_id = 8765
40+
project_id = dbtcloud_project.dbt_project.id
41+
remote_url = "<gitlab-group>/<gitlab-project>"
42+
gitlab_project_id = 8765
43+
git_clone_strategy = "deploy_token"
4344
}
4445

4546

0 commit comments

Comments
 (0)