-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312 from dbt-labs/release-0.3.20
- Loading branch information
Showing
38 changed files
with
918 additions
and
60 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
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
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
page_title: "dbtcloud_lineage_integration Resource - dbtcloud" | ||
subcategory: "" | ||
description: |- | ||
Setup lineage integration for dbt Cloud to automatically fetch lineage from external BI tools in dbt Explorer. Currently supports Tableau. | ||
This resource requires having an environment tagged as production already created for you project. | ||
--- | ||
|
||
# dbtcloud_lineage_integration (Resource) | ||
|
||
|
||
Setup lineage integration for dbt Cloud to automatically fetch lineage from external BI tools in dbt Explorer. Currently supports Tableau. | ||
|
||
This resource requires having an environment tagged as production already created for you project. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
// the resource can only be configured when a Prod environment has been set | ||
// so, you might want to explicitly set the dependency on your Prod environment resource | ||
resource "dbtcloud_lineage_integration" "my_lineage" { | ||
project_id = dbtcloud_project.my_project.id | ||
host = "my.host.com" | ||
site_id = "mysiteid" | ||
token_name = "my-token-name" | ||
token = "my-sensitive-token" | ||
depends_on = [dbtcloud_environment.my_prod_env] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `host` (String) The URL of the BI server (see docs for more details) | ||
- `project_id` (Number) The dbt Cloud project ID for the integration | ||
- `site_id` (String) The sitename for the collections of dashboards (see docs for more details) | ||
- `token` (String, Sensitive) The secret token value to use to authenticate to the BI server | ||
- `token_name` (String) The token to use to authenticate to the BI server | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Combination of `project_id` and `lineage_integration_id` | ||
- `lineage_integration_id` (Number) The ID of the lineage integration | ||
- `name` (String) The integration type. Today only 'tableau' is supported | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# using import blocks (requires Terraform >= 1.5) | ||
import { | ||
to = dbtcloud_lineage_integration.my_lineage_integration | ||
id = "projet_id:lineage_integration_id" | ||
} | ||
|
||
import { | ||
to = dbtcloud_lineage_integration.my_lineage_integration | ||
id = "123:4567" | ||
} | ||
|
||
# using the older import command | ||
terraform import dbtcloud_lineage_integration.my_lineage_integration "projet_id:lineage_integration_id" | ||
terraform import dbtcloud_lineage_integration.my_lineage_integration 123:4567 | ||
``` |
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# using import blocks (requires Terraform >= 1.5) | ||
import { | ||
to = dbtcloud_lineage_integration.my_lineage_integration | ||
id = "projet_id:lineage_integration_id" | ||
} | ||
|
||
import { | ||
to = dbtcloud_lineage_integration.my_lineage_integration | ||
id = "123:4567" | ||
} | ||
|
||
# using the older import command | ||
terraform import dbtcloud_lineage_integration.my_lineage_integration "projet_id:lineage_integration_id" | ||
terraform import dbtcloud_lineage_integration.my_lineage_integration 123:4567 |
12 changes: 12 additions & 0 deletions
12
examples/resources/dbtcloud_lineage_integration/resource.tf
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// the resource can only be configured when a Prod environment has been set | ||
// so, you might want to explicitly set the dependency on your Prod environment resource | ||
|
||
resource "dbtcloud_lineage_integration" "my_lineage" { | ||
project_id = dbtcloud_project.my_project.id | ||
host = "my.host.com" | ||
site_id = "mysiteid" | ||
token_name = "my-token-name" | ||
token = "my-sensitive-token" | ||
|
||
depends_on = [dbtcloud_environment.my_prod_env] | ||
} |
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
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
Oops, something went wrong.