File tree 2 files changed +9
-7
lines changed
examples/resources/dbtcloud_repository
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,10 @@ resource "dbtcloud_repository" "github_repo_other" {
63
63
### repo cloned via the GitLab integration
64
64
# as of 15 Sept 2023 this resource requires using a user token and can't be set with a service token - CC-791
65
65
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"
69
70
}
70
71
71
72
@@ -77,7 +78,7 @@ resource "dbtcloud_repository" "deploy_repo" {
77
78
}
78
79
79
80
80
- ### repo cloned via the Azure Dev Ops native integration
81
+ ### repo cloned via the Azure Dev Ops integration
81
82
resource "dbtcloud_repository" "ado_repo" {
82
83
project_id = dbtcloud_project.dbt_project.id
83
84
# the following values can be added manually (IDs can be retrieved from the ADO API) or via data sources
Original file line number Diff line number Diff line change @@ -37,9 +37,10 @@ resource "dbtcloud_repository" "github_repo_other" {
37
37
# ## repo cloned via the GitLab integration
38
38
# as of 15 Sept 2023 this resource requires using a user token and can't be set with a service token - CC-791
39
39
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"
43
44
}
44
45
45
46
You can’t perform that action at this time.
0 commit comments