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 resource allows setting extended attributes which can be assigned to a given environment (see docs https://docs.getdbt.com/docs/dbt-cloud-environments#extended-attributes-beta).In dbt Cloud those values are provided as YML but in the provider they need to be provided as JSON (see example below).
5
+
This resource allows setting extended attributes which can be assigned to a given environment (see docs https://docs.getdbt.com/docs/dbt-cloud-environments#extended-attributes).In dbt Cloud those values are provided as YML but in the provider they need to be provided as JSON (see example below).
6
6
---
7
7
8
8
# dbtcloud_extended_attributes (Resource)
9
9
10
10
11
-
This resource allows setting extended attributes which can be assigned to a given environment ([see docs](https://docs.getdbt.com/docs/dbt-cloud-environments#extended-attributes-beta)).<br/><br/>In dbt Cloud those values are provided as YML but in the provider they need to be provided as JSON (see example below).
11
+
This resource allows setting extended attributes which can be assigned to a given environment ([see docs](https://docs.getdbt.com/docs/dbt-cloud-environments#extended-attributes)).<br/><br/>In dbt Cloud those values are provided as YML but in the provider they need to be provided as JSON (see example below).
Copy file name to clipboardExpand all lines: docs/resources/job.md
+9-6
Original file line number
Diff line number
Diff line change
@@ -7,20 +7,20 @@ description: |-
7
7
8
8
# dbtcloud_job (Resource)
9
9
10
-
~> As of October 2023, CI improvements have been rolled out to dbt Cloud with minor impacts to some jobs: [more info](https://docs.getdbt.com/docs/dbt-versions/release-notes/june-2023/ci-updates-phase1-rn).
10
+
~> In October 2023, CI improvements have been rolled out to dbt Cloud with minor impacts to some jobs: [more info](https://docs.getdbt.com/docs/dbt-versions/release-notes/june-2023/ci-updates-phase1-rn).
11
11
<br/>
12
12
<br/>
13
13
Those improvements include modifications to deferral which was historically set at the job level and will now be set at the environment level.
14
14
Deferral can still be set to "self" by setting `self_deferring` to `true` but with the new approach, deferral to other runs need to be done with `deferring_environment_id` instead of `deferring_job_id`.
15
15
16
+
~> New with 0.3.1, `triggers` now accepts a `on_merge` value to trigger jobs when code is merged in git. If `on_merge` is `true` all other triggers need to be `false`.
17
+
<br/>
18
+
<br/>
19
+
For now, it is not a mandatory field, but it will be in a future version. Please add `on_merge` in your config or modules.
16
20
17
21
## Example Usage
18
22
19
23
```terraform
20
-
// NOTE for customers using the LEGACY dbt_cloud provider:
21
-
// use dbt_cloud_job instead of dbtcloud_job for the legacy resource names
22
-
// legacy names will be removed from 0.3 onwards
23
-
24
24
# a job that has github_webhook and git_provider_webhook
25
25
# set to false will be categorized as a "Deploy Job"
-`execute_steps` (List of String) List of commands to execute for the job
108
111
-`name` (String) Job name
109
112
-`project_id` (Number) Project ID to create the job in
110
-
-`triggers` (Map of Boolean) Flags for which types of triggers to use, the values are `github_webhook`, `git_provider_webhook`, and `schedule`. <br>`custom_branch_only` used to be allowed but has been deprecated from the API. The jobs will use the custom branch of the environment. Please remove the `custom_branch_only` from your config. <br>To create a job in a 'deactivated' state, set all to `false`.
113
+
-`triggers` (Map of Boolean) Flags for which types of triggers to use, the values are `github_webhook`, `git_provider_webhook`, `schedule`and `on_merge`. All flags should be listed and set with `true` or `false`. When `on_merge` is `true`, all the other values must be false.<br>`custom_branch_only` used to be allowed but has been deprecated from the API. The jobs will use the custom branch of the environment. Please remove the `custom_branch_only` from your config. <br>To create a job in a 'deactivated' state, set all to `false`.
0 commit comments