Skip to content

Commit c2fa411

Browse files
authored
Merge pull request #258 from dbt-labs/release-0.3.5
2 parents ac2460f + df063df commit c2fa411

File tree

73 files changed

+1917
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1917
-216
lines changed

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
with:
2727
# Allow goreleaser to access older tag information.
2828
fetch-depth: 0
29+
- name: Set release VERSION
30+
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
2931
- name: Set up Go
3032
uses: actions/setup-go@v5
3133
with:
@@ -44,5 +46,6 @@ jobs:
4446
args: release --clean
4547
env:
4648
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
49+
VERSION: ${{ env.VERSION }}
4750
# GitHub sets this automatically
4851
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ builds:
1414
flags:
1515
- -trimpath
1616
ldflags:
17-
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
17+
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X "github.com/dbt-labs/terraform-provider-dbtcloud/pkg/dbt_cloud.versionString={{.Env.VERSION}}"'
1818
goos:
1919
- freebsd
2020
- windows
@@ -47,7 +47,7 @@ signs:
4747
- "${signature}"
4848
- "--detach-sign"
4949
- "${artifact}"
50-
release:
50+
# release:
5151
# If you want to manually examine the release before its live, uncomment this line:
5252
# draft: true
5353
changelog:

CHANGELOG.md

+68-49
Original file line numberDiff line numberDiff line change
@@ -2,284 +2,303 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [Unreleased](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.3.4...HEAD)
5+
## [Unreleased](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.3.5...HEAD)
6+
7+
## [0.3.5](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.3.4...v0.3.5)
8+
9+
### Changes
10+
11+
- add a `dbtcloud_partial_notification` resource to allow different resources to add/remove job notifications for the same Slack channel/email/user
12+
13+
### Fixes
14+
15+
- [#257](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/257) - Force new resource when the `project_id` changes for a `dbtcloud_job`.
16+
- Creating connection for adapters (e.g. Databricks and Fabric) was failing when using Service Tokens following changes in the dbt Cloud APIs
17+
18+
### Behind the scenes
19+
20+
- change the User Agent to report what provider version is being used
21+
22+
### Documentation
23+
24+
- add import block example for the resources in addition to the import command
625

726
## [0.3.4](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.3.3...v0.3.4)
827

9-
## Changes
28+
### Changes
1029

1130
- [#255](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/255) - Add new datasource `dbtcloud_environments` to return all environments across an account, or all environments for a give project ID
1231

13-
## Behind the scenes
32+
### Behind the scenes
1433

1534
- Move the `dbtcloud_environment` datasource to the Terraform Plugin Framework
1635

1736
## [0.3.3](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.3.2...v0.3.3)
1837

19-
## Changes
38+
### Changes
2039

2140
- [#250](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/250) - [Experimental] Create a new resource called `dbtcloud_group_partial_permissions` to manage permissions of a single group from different resources which can be set across different Terraform projects/workspaces. The dbt Cloud API doesn't provide endpoints for adding/removing single permissions, so the logic in the provider is more complex than other resources. If the resource works as expected for the provider users we could create similar ones for "partial" notifications and "partial" license mappings.
2241

2342
## [0.3.2](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.3.0...v0.3.2)
2443

25-
## Changes
44+
### Changes
2645

2746
- Add `on_merge` trigger for jobs. The trigger is optional for now but will be required in the future.
2847

29-
## Documentation
48+
### Documentation
3049

3150
- Remove mention of `dbt_cloud_xxx` resources in the docs
3251

3352
## [0.3.0](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.25...v0.3.0)
3453

35-
## Changes
54+
### Changes
3655

3756
- 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.
3857
- Move some resources / datasources to the plugin Framework
3958
- Remove legacy `dbt_cloud_xxx` resources
4059

4160
## [0.2.25](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.24...v0.2.25)
4261

43-
## Changes
62+
### Changes
4463

4564
- Enable OAuth configuration for Databricks connections + update docs accordingly
4665

4766
## [0.2.24](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.23...v0.2.24)
4867

49-
## Fixes
68+
### Fixes
5069

5170
- [#247](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/247) Segfault when the env var for the token is empty
5271
- [Internal] Issue with `job_ids` required to be set going forward, even if it is empty
5372

5473
## [0.2.23](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.22...v0.2.23)
5574

56-
## Changes
75+
### Changes
5776

5877
- [#244](https://github.com/dbt-labs/terraform-provider-dbtcloud/pull/244) Better error handling when GitLab repositories are created with a User Token
5978

60-
## Fixes
79+
### Fixes
6180

6281
- [#245](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/245) Issues on `dbtcloud_job` when modifying an existing job schedule
6382

6483
## [0.2.22](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.21...v0.2.22)
6584

66-
## Changes
85+
### Changes
6786

6887
- [#240](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/240) Add notice of deprecation for `triggers.custom_branch_only` for jobs and update logic to make it work even though people have it to true or false in their config. We might raise an error if the field is still there in the future.
6988
- Update diff calculation for Extended Attributes, allowing strings which are not set with `jsonencode()`
7089
- [#241](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/241) Force recreation of env vars when values change to work with the recent changes in the dbt Cloud API
7190

72-
## Documentation
91+
### Documentation
7392

7493
- Add list of permission names and permission codes in the docs of the `service_token` and `group`
7594
- Add info in `dbtcloud_repository` about the need to also create a `dbtcloud_project_repository`
7695

7796
## [0.2.21](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.20...v0.2.21)
7897

79-
## Changes
98+
### Changes
8099

81100
- Flag `fetch_deploy_key` as deprecated for `dbtcloud_repository`. The key is always fetched for the genetic git clone approach
82101

83-
## Documentations
102+
### Documentations
84103

85104
- Add info about `versionless` dbt environment (Private Beta)
86105
- [#235](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/235) Fix docs on the examples for Fabric credentials
87106

88107
## [0.2.20](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.19...v0.2.20)
89108

90-
## Changes
109+
### Changes
91110

92111
- Add support for job chaining and `job_completion_trigger_condition` (feature is in closed Beta in dbt Cloud as of 5 FEB 2024)
93112

94-
## Documentations
113+
### Documentations
95114

96115
- Improve docs for jobs
97116

98117
## [0.2.19](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.18...v0.2.19)
99118

100-
## Changes
119+
### Changes
101120

102121
- Update permissions allowed for groups and token to include `job_runner`
103122

104-
## Documentations
123+
### Documentations
105124

106125
- Add guide on `dbtcloud-terraforming` to import existing resources
107126

108127
## [0.2.18](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.17...v0.2.18)
109128

110-
## Changes
129+
### Changes
111130

112131
- #229 - fix logic for secret environment variables
113132

114-
## Documentations
133+
### Documentations
115134

116135
- #228 - update docs to replace the non existing `dbtcloud_user` resource by the existing `data.dbtcloud_user` data source
117136

118-
## Behind the scenes
137+
### Behind the scenes
119138

120139
- update third party module version following security report
121140

122141
## [0.2.17](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.16...v0.2.17)
123142

124-
## Changes
143+
### Changes
125144

126145
- #224 - add the resources `dbtcloud_fabric_connection` and `dbtcloud_fabric_credential` to allow using dbt Cloud along with Microsoft Fabric
127146
- #222 - allow users to set Slack notifications from Terraform
128147

129-
## Behind the scenes
148+
### Behind the scenes
130149

131150
- Refactor some of the shared code for Adapters and connections
132151

133152
## [0.2.16](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.15...v0.2.16)
134153

135-
## Changes
154+
### Changes
136155

137156
- #99 - add the resource `environment_variable_job_override` to allow environment variable override in jobs
138157
- Update the go version and packages versions
139158

140-
## Fixes
159+
### Fixes
141160

142161
- #221 - removing the value for an env var scope was not removing it in dbt Cloud
143162
- add better messages and error handling for jobs
144163

145164
## [0.2.15](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.14...v0.2.15)
146165

147-
## Changes
166+
### Changes
148167

149168
- Update list of permissions for groups and service tokens
150169

151170
## [0.2.14](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.13...v0.2.14)
152171

153-
## Changes
172+
### Changes
154173

155174
- Fix issues with the repositories connected via GitLab native integration
156175
- Add ability to configure repositories using the native ADO integration
157176
- Add data sources for retrieving ADO projects and repositories ID and information
158177

159-
## Documentation
178+
### Documentation
160179

161180
- Show in the main page that provider parameters can be set with env vars
162181
- Update examples and field descriptions for the repositories
163182

164183
## [0.2.13](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.11...v0.2.13)
165184

166-
## Changes
185+
### Changes
167186

168187
- Update connections to force new one when the project changes
169188
- Add support for the Datasource dbtcloud_group_users to get the list of users assigned to a given project
170189

171-
## Documentation
190+
### Documentation
172191

173192
- Use d2 for showing the different resources
174193
- Update examples in docs
175194

176195
## [0.2.11](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.10...v0.2.11)
177196

178-
## Changes
197+
### Changes
179198

180199
- Update docs and examples for jobs and add the ability to set/unset running CI jobs on Draft PRs
181200

182201
## [0.2.10](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.9...v0.2.10)
183202

184-
## Fix
203+
### Fix
185204

186205
- [#197](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/197) - Community contribution to handle cases where more than 100 groups are created in dbt Cloud
187206
- [#199](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/199) - Update logic to allow finding users by their email addresses in a cases insensitive way
188207
- [#198](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/198) - Update some internal logic to call endpoints by their unique IDs instead of looping through answers to avoid issues like #199 and paginate through results for endpoints where we can't query the ID directly
189208

190-
## Changes
209+
### Changes
191210

192211
- [#189](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/189) - Allow users to retrieve project data sources by providing project names instead of project IDs. This will return an error if more than 1 project has the given name and takes care of the pagination required for handling more than 100 projects
193212

194213
## [0.2.9](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.8...v0.2.9)
195214

196-
## Changes
215+
### Changes
197216

198217
- Add support for extended attributes for environments [(docs)](https://docs.getdbt.com/docs/dbt-cloud-environments#extended-attributes-beta), allowing people to add connection attributes available in dbt-core but not in the dbt Cloud interface
199218
- [#191](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/191) - Allow setting a description for jobs
200219

201220
## [0.2.8](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.7...v0.2.8)
202221

203-
## Fix
222+
### Fix
204223

205224
- [#190](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/190) - Allow setting deferral for jobs at the environment level rather than at the job level. This is due to changes in CI in dbt Cloud. Add docs about those changes on the dbtcloud_job resource page
206225

207226
## [0.2.7](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.6...v0.2.7)
208227

209-
## Fix
228+
### Fix
210229

211230
- [#184](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/184) - Fix issue when updating SSO groups for a given RBAC group
212231

213232
## [0.2.6](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.5...v0.2.6)
214233

215-
## Changes
234+
### Changes
216235

217236
- [#178](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/178) and [#179](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/179): Add support for [dbtcloud_license_map](https://registry.terraform.io/providers/dbt-labs/dbtcloud/latest/docs/resources/license_map), allowing the assignment of SSO groups to different dbt Cloud license types
218237

219238
## [0.2.5](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.4...v0.2.5)
220239

221-
## Fixes
240+
### Fixes
222241

223242
- [#172](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/172): Fix issue when changing the schedule of jobs from a list of hours to an interval in a [dbtcloud_job](https://registry.terraform.io/providers/dbt-labs/dbtcloud/latest/docs/resources/job)
224243
- [#175](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/175): Fix issue when modifying the `environment_id` of an existing [dbtcloud_job](https://registry.terraform.io/providers/dbt-labs/dbtcloud/latest/docs/resources/job)
225244
- [#154](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/154): Allow the creation of [Databricks connections](https://registry.terraform.io/providers/dbt-labs/dbtcloud/latest/docs/resources/connection) using Service Tokens when it was only possible with User Tokens before
226245

227-
## Changes
246+
### Changes
228247

229248
- Use the `v2/users/<id>` endpoint to get the groups of a user
230249

231250
## [0.2.4](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.3...v0.2.4)
232251

233-
## Fixes
252+
### Fixes
234253

235254
- More update to docs
236255

237-
## Changes
256+
### Changes
238257

239258
- [#171](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/171) Add the ability to define which [environment](https://registry.terraform.io/providers/dbt-labs/dbtcloud/latest/docs/resources/environment) is the production one (to be used with cross project references in dbt Cloud)
240259
- Add [guide](https://registry.terraform.io/providers/dbt-labs/dbtcloud/latest/docs/guides/2_leveraging_http_provider) on how to use the Hashicorp HTTP provider
241260
- [#174](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/174) Add the ability to assign User groups to dbt Cloud users.
242261

243262
## [0.2.3](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.2...v0.2.3)
244263

245-
## Fixes
264+
### Fixes
246265

247266
- Update CI to avoid Node version warnings
248267
- Fixes to the docs
249268

250-
## Changes
269+
### Changes
251270

252271
- [164](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/164) Add the ability to define `priority` and `execution_project` for [BigQuery connections](https://registry.terraform.io/providers/dbt-labs/dbtcloud/latest/docs/resources/bigquery_connection)
253272
- [168](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/168) Add the ability to set up [email notifications](https://registry.terraform.io/providers/dbt-labs/dbtcloud/latest/docs/resources/notification) (to internal users and external email addresses) based on jobs results
254273

255274
## [0.2.2](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.1...v0.2.2)
256275

257-
## Fixes
276+
### Fixes
258277

259278
- [#156](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/156) Fix the `dbtcloud_connection` for Databricks when updating the `http_path` or `catalog` + add integration test
260279
- [#157](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/157) Fix updating an environment with credentials already set + add integration test
261280

262-
## Changes
281+
### Changes
263282

264283
- Add [guide](https://registry.terraform.io/providers/dbt-labs/dbtcloud/latest/docs/guides/1_getting_started) to get started with the provider
265284
- Add missing import and fix more docs
266285
- Update docs template to allow using Subcategories later
267286

268287
## [0.2.1](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.2.0...v0.2.1)
269288

270-
## Changes
289+
### Changes
271290

272291
- Resources deleted from dbt Cloud won't crash the provider and we now consider the resource as deleted, removing it from the state. This is the expected behavior of a provider.
273292
- Add examples in the docs to resources that didn't have any so far
274293

275294
## [0.2.0](https://github.com/dbt-labs/terraform-provider-dbtcloud/compare/v0.1.12...v0.2.0)
276295

277-
## Important changes
296+
### Important changes
278297

279298
- The resources and data sources are now available as `dbtcloud_xxx` (following the terraform convention) in addition to `dbt_cloud_xxx` (legacy). The legacy version will be removed from v0.3.0 onwards. Instructions on how to use the new resources are available on [the main page of the Provider](https://registry.terraform.io/providers/dbt-labs/dbtcloud/latest/docs).
280299

281300
## 0.1.12
282301

283-
## Changes
302+
### Changes
284303

285304
- The provider is now published under the dbt-labs org: https://registry.terraform.io/providers/dbt-labs/dbtcloud/latest

0 commit comments

Comments
 (0)