-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b96200
commit d45b71c
Showing
8 changed files
with
95 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,24 +23,39 @@ resource "fivetran_dbt_project" "project" { | |
} | ||
``` | ||
|
||
Then you need to set up the dbt Project public key (field `public_key` in created resource) as a deploy key into your repo using [GitHub Provider Repository Deploy Key Resource](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_deploy_key): | ||
Then you need to set up the dbt Project public key (field `public_key` in created resource) as a deploy key into your repo using: | ||
|
||
[GitHub Provider Repository Deploy Key Resource](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_deploy_key): | ||
```hcl | ||
resource "github_repository_deploy_key" "example_repository_deploy_key" { | ||
title = "Repository test key" | ||
repository = "your-repo" | ||
key = fivetran_dbt_project.project.public_key | ||
repository = "repo-owner/repo-name" | ||
key = fivetran_dbt_project.test_project.public_key | ||
read_only = true | ||
} | ||
``` | ||
|
||
or | ||
|
||
[Bitbucket Provider Repository Deploy Key Resource]https://registry.terraform.io/providers/DrFaust92/bitbucket/latest/docs/resources/deploy_key) | ||
```hcl | ||
resource "bitbucket_deploy_key" "test" { | ||
workspace = "repo-owner" | ||
repository = "repo-name" | ||
key = fivetran_dbt_project.test_project.public_key | ||
label = "Repository test key" | ||
} | ||
``` | ||
|
||
Since we recommend using third-party providers in this case, please make sure that access to the repositories is provided correctly and the providers are configured correctly for connection. | ||
|
||
And after that you can configure your project in `fivetran_dbt_git_project_config` resource: | ||
|
||
```hcl | ||
resource "fivetran_dbt_git_project_config" "project_config" { | ||
id = fivetran_dbt_project.project.id | ||
git_remote_url = "[email protected]:your-repo.git" | ||
git_remote_url = "[email protected]:repo-owner/repo-name.git" | ||
git_branch = "main" | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ resource "fivetran_dbt_project" "test_project" { | |
type = "GIT" | ||
project_config { | ||
folder_path = "/folder/path" | ||
git_remote_url = "[email protected]:fivetran/dbt_demo.git" | ||
git_remote_url = "[email protected]:fivetran/repo-name.git" | ||
git_branch = "main" | ||
} | ||
} | ||
|
@@ -71,12 +71,37 @@ resource "fivetran_dbt_project" "test_project" { | |
default_schema = "dbt_demo_test_e2e_terraform" | ||
type = "GIT" | ||
} | ||
``` | ||
|
||
For GitHub based repositories | ||
```hcl | ||
resource "github_repository_deploy_key" "example_repository_deploy_key" { | ||
title = "Repository test key" | ||
repository = "fivetran/repo-name" | ||
key = fivetran_dbt_project.test_project.public_key | ||
read_only = true | ||
} | ||
``` | ||
|
||
For Bitbucket based repositories | ||
```hcl | ||
resource "bitbucket_deploy_key" "test" { | ||
workspace = "fivetran" | ||
repository = "repo-name" | ||
key = fivetran_dbt_project.test_project.public_key | ||
label = "Repository test key" | ||
} | ||
``` | ||
|
||
Since we recommend using third-party providers in this case, please make sure that access to the repositories is provided correctly and the providers are configured correctly for connection. | ||
|
||
|
||
```hcl | ||
resource "fivetran_dbt_git_project_config" "test_project_config" { | ||
id = fivetran_dbt_project.test_project.id | ||
project_id = fivetran_dbt_project.test_project.id | ||
folder_path = "/folder/path" | ||
git_remote_url = "[email protected]:fivetran/dbt_demo.git" | ||
git_remote_url = "[email protected]:fivetran/repo-name.git" | ||
git_branch = "main" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,24 +23,39 @@ resource "fivetran_dbt_project" "project" { | |
} | ||
``` | ||
|
||
Then you need to set up the dbt Project public key (field `public_key` in created resource) as a deploy key into your repo using [GitHub Provider Repository Deploy Key Resource](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_deploy_key): | ||
Then you need to set up the dbt Project public key (field `public_key` in created resource) as a deploy key into your repo using: | ||
|
||
[GitHub Provider Repository Deploy Key Resource](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_deploy_key): | ||
```hcl | ||
resource "github_repository_deploy_key" "example_repository_deploy_key" { | ||
title = "Repository test key" | ||
repository = "your-repo" | ||
key = fivetran_dbt_project.project.public_key | ||
repository = "repo-owner/repo-name" | ||
key = fivetran_dbt_project.test_project.public_key | ||
read_only = true | ||
} | ||
``` | ||
|
||
or | ||
|
||
[Bitbucket Provider Repository Deploy Key Resource]https://registry.terraform.io/providers/DrFaust92/bitbucket/latest/docs/resources/deploy_key) | ||
```hcl | ||
resource "bitbucket_deploy_key" "test" { | ||
workspace = "repo-owner" | ||
repository = "repo-name" | ||
key = fivetran_dbt_project.test_project.public_key | ||
label = "Repository test key" | ||
} | ||
``` | ||
|
||
Since we recommend using third-party providers in this case, please make sure that access to the repositories is provided correctly and the providers are configured correctly for connection. | ||
|
||
And after that you can configure your project in `fivetran_dbt_git_project_config` resource: | ||
|
||
```hcl | ||
resource "fivetran_dbt_git_project_config" "project_config" { | ||
id = fivetran_dbt_project.project.id | ||
|
||
git_remote_url = "[email protected]:your-repo.git" | ||
git_remote_url = "[email protected]:repo-owner/repo-name.git" | ||
git_branch = "main" | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ resource "fivetran_dbt_project" "test_project" { | |
type = "GIT" | ||
project_config { | ||
folder_path = "/folder/path" | ||
git_remote_url = "[email protected]:fivetran/dbt_demo.git" | ||
git_remote_url = "[email protected]:fivetran/repo-name.git" | ||
git_branch = "main" | ||
} | ||
} | ||
|
@@ -71,12 +71,37 @@ resource "fivetran_dbt_project" "test_project" { | |
default_schema = "dbt_demo_test_e2e_terraform" | ||
type = "GIT" | ||
} | ||
``` | ||
|
||
For GitHub based repositories | ||
```hcl | ||
resource "github_repository_deploy_key" "example_repository_deploy_key" { | ||
title = "Repository test key" | ||
repository = "fivetran/repo-name" | ||
key = fivetran_dbt_project.test_project.public_key | ||
read_only = true | ||
} | ||
``` | ||
|
||
For Bitbucket based repositories | ||
```hcl | ||
resource "bitbucket_deploy_key" "test" { | ||
workspace = "fivetran" | ||
repository = "repo-name" | ||
key = fivetran_dbt_project.test_project.public_key | ||
label = "Repository test key" | ||
} | ||
``` | ||
|
||
Since we recommend using third-party providers in this case, please make sure that access to the repositories is provided correctly and the providers are configured correctly for connection. | ||
|
||
|
||
```hcl | ||
resource "fivetran_dbt_git_project_config" "test_project_config" { | ||
project_id = fivetran_dbt_project.test_project.id | ||
|
||
folder_path = "/folder/path" | ||
git_remote_url = "[email protected]:fivetran/dbt_demo.git" | ||
git_remote_url = "[email protected]:fivetran/repo-name.git" | ||
git_branch = "main" | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters