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
- Implements muxing to allow both SDKv2 and Plugin Framework resources to work at the same time. This change a bit the internals but shouldn't have any regression.
12
+
- Move some resources / datasources to the plugin Framework
Copy file name to clipboardExpand all lines: docs/data-sources/notification.md
+7-5
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@
3
3
page_title: "dbtcloud_notification Data Source - dbtcloud"
4
4
subcategory: ""
5
5
description: |-
6
-
6
+
Retrieve notification details
7
7
---
8
8
9
9
# dbtcloud_notification (Data Source)
10
10
11
-
11
+
Retrieve notification details
12
12
13
13
## Example Usage
14
14
@@ -23,14 +23,16 @@ data "dbtcloud_notification" "my_notification" {
23
23
24
24
### Required
25
25
26
-
-`notification_id` (Number) ID of the notification
26
+
-`notification_id` (Number) The ID of the notification
27
27
28
28
### Read-Only
29
29
30
30
-`external_email` (String) The external email to receive the notification
31
-
-`id` (String) The ID of this resource.
32
-
-`notification_type` (Number) Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 4 = external email: requires setting an external_email)
31
+
-`notification_type` (Number) Type of notification (1 = dbt Cloud user email (default): does not require an external_email ; 2 = Slack channel: requires `slack_channel_id` and `slack_channel_name` ; 4 = external email: requires setting an `external_email`)
33
32
-`on_cancel` (Set of Number) List of job IDs to trigger the webhook on cancel
34
33
-`on_failure` (Set of Number) List of job IDs to trigger the webhook on failure
35
34
-`on_success` (Set of Number) List of job IDs to trigger the webhook on success
35
+
-`slack_channel_id` (String) The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings
36
+
-`slack_channel_name` (String) The name of the slack channel
37
+
-`state` (Number) State of the notification (1 = active (default), 2 = inactive)
36
38
-`user_id` (Number) Internal dbt Cloud User ID. Must be the user_id for an existing user even if the notification is an external one
Copy file name to clipboardExpand all lines: docs/index.md
+7-49
Original file line number
Diff line number
Diff line change
@@ -8,39 +8,19 @@ description: |-
8
8
# dbtcloud Provider
9
9
10
10
~> 🚧 IMPORTANT! 🚧
11
-
Since 0.2, resources and data sources are both available as `dbt_cloud_xxx`(legacy) and `dbtcloud_xxx` (following the Terraform convention).
12
-
Selecting one option or the other is done by modifying the `required_providers` configuration.
11
+
Since 0.3, only resources starting with `dbtcloud_xxx` are allowed. If you use the legacy `dbt_cloud_xxx`ones, you will have to stay on 0.2.x or move to the new resources.
12
+
Instruction on how to do it is available in the 0.2.x docs.
13
13
14
-
-`dbt_cloud_xxx` is kept in 0.2 for backward compatibility, but will be removed from version 0.3 onwards. Consider starting new projects with the `dbtcloud_xxx` naming convention
15
-
-`dbtcloud_xxx` follows the Terraform naming convention and is the long term convention for the dbt Cloud configuration
16
14
17
-
## Handling the move from `dbt_cloud_xxx` (legacy) to `dbtcloud_xxx`
18
15
19
-
As those are different resources, it is not possible to move existing resources using the `terraform state mv` command.
20
-
21
-
The options are:
22
-
23
-
- keep existing projects with `dbt_cloud_xxx` resources, and create new ones with `dbtcloud_xxx`
24
-
- or update the state file manually to change the resource names (this should work but it is possible to corrupt the state, be careful and keep a backup)
25
-
1. perform a `terraform apply` to apply the changes required to dbt Cloud
26
-
1. edit the resource configuration files changing resources from `dbt_cloud_xxx` to `dbtcloud_xxx`
27
-
1. edit `required_providers { dbt = {` and `provider "dbt"` to `required_providers { dbtcloud = {` and `provider "dbtcloud"`
28
-
1. pull the remote state with `terraform state pull > remote_state.tfstate` and keep a back up of the file
29
-
1. edit the state file to change the resource types from `dbt_cloud_xxx` to `dbtcloud_xxx`
30
-
1. push the state back with `terraform state push remote_state.tfstate`
31
-
1. perform a `terraform init -upgrade` to update the terraform provider
32
-
1. perform a `terraform plan` to check that no change is required, you can then delete the backup of the state
33
-
34
-
35
-
36
-
## Recommended - Example with ``dbtcloud_xxx`` resources, using the `dbtcloud` provider name
16
+
## Provider configuration
37
17
38
18
```terraform
39
19
terraform {
40
20
required_providers {
41
21
dbtcloud = {
42
22
source = "dbt-labs/dbtcloud"
43
-
version = "0.2.0"
23
+
version = "~> 0.3"
44
24
}
45
25
}
46
26
}
@@ -52,33 +32,11 @@ provider "dbtcloud" {
52
32
}
53
33
```
54
34
55
-
## Legacy - Example with `dbt_cloud_xxx` resources, using the `dbt` provider name
56
-
57
-
```terraform
58
-
terraform {
59
-
required_providers {
60
-
dbt = {
61
-
source = "dbt-labs/dbtcloud"
62
-
version = "0.2.0"
63
-
}
64
-
}
65
-
}
66
-
67
-
provider "dbt" {
68
-
account_id = var.dbt_cloud_account_id
69
-
token = var.dbt_cloud_token
70
-
host_url = "https://cloud.getdbt.com/api"
71
-
}
72
-
```
73
-
74
35
<!-- schema generated by tfplugindocs -->
75
36
## Schema
76
37
77
-
### Required
78
-
79
-
-`account_id` (Number) Account identifier for your dbt Cloud implementation. Instead of setting the parameter, you can set the environment variable `DBT_CLOUD_ACCOUNT_ID`
80
-
-`token` (String) API token for your dbt Cloud. Instead of setting the parameter, you can set the environment variable `DBT_CLOUD_TOKEN`
81
-
82
38
### Optional
83
39
84
-
-`host_url` (String) URL for your dbt Cloud deployment. Instead of setting the parameter, you can set the environment variable `DBT_CLOUD_HOST_URL` - Defaults to https://cloud.getdbt.com/api
40
+
-`account_id` (Number) Account identifier for your dbt Cloud implementation. Instead of setting the parameter, you can set the environment variable `DBT_CLOUD_ACCOUNT_ID`
41
+
-`host_url` (String) URL for your dbt Cloud deployment. Instead of setting the parameter, you can set the environment variable `DBT_CLOUD_HOST_URL` - Defaults to https://cloud.getdbt.com/api
42
+
-`token` (String, Sensitive) API token for your dbt Cloud. Instead of setting the parameter, you can set the environment variable `DBT_CLOUD_TOKEN`
0 commit comments