You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repo was originally created by a dbt community member, Gary James [[GtheSheep](https://github.com/GtheSheep)]
6
+
7
+
| If you are still using the GtheSheep/dbt-cloud source, see [Upgrading from the community Provider](UPGRADING_PROVIDER.md) to upgrade to the latest version.
8
+
9
+
## Scope
10
+
11
+
Provide the ability to manage dbt Cloud projects and account settings via Terraform resources.
12
+
Data sources are also available for most resources.
3
13
4
-
Primarily focused on managing jobs in dbt Cloud, given what
5
-
is available via the API.
6
-
Data sources for other concepts are added for convenience.
7
14
In order to use this provider, add the following to your Terraform providers
8
15
setup, with the latest version number.
16
+
9
17
```terraform
10
18
terraform {
11
19
required_providers {
12
20
dbt = {
13
-
source = "GtheSheep/dbt-cloud"
21
+
source = "dbt-labs/dbtcloud"
14
22
version = "<version>"
15
23
}
16
24
}
@@ -22,6 +30,7 @@ terraform {
22
30
If you want to explicitly set the authentication variables on the provider, you
23
31
can do so as below, though likely via a `variables.tf` file or config in your
24
32
CI-CD pipeline to keep these credentials safe.
33
+
25
34
```terraform
26
35
provider "dbt" {
27
36
// required
@@ -30,16 +39,24 @@ provider "dbt" {
30
39
host_url = "..."
31
40
}
32
41
```
42
+
33
43
You can also set them via environment variables:
34
44
`DBT_CLOUD_ACCOUNT_ID` for the `account_id`.
35
45
`DBT_CLOUD_TOKEN` for the `token`.
36
46
`DBT_CLOUD_HOST_URL` (Optional) for the `host_url`.
37
47
38
48
## Examples
49
+
39
50
Check out the `examples/` folder for some usage options, these are intended to
40
51
simply showcase what this module can do rather than be best practices for any
41
52
given use case.
42
53
43
54
## Running Acceptance Tests
55
+
44
56
Currently, acceptance tests, run via `make test-acceptance` must be done on your
45
-
own account, as there is no free tier of dbt Cloud that grants API access
57
+
own account
58
+
59
+
## Acknowledgement
60
+
61
+
Thanks to Gary James [[GtheSheep](https://github.com/GtheSheep)], for all the effort put in creating this provier originally
0 commit comments