Skip to content

Commit 1e0c4ea

Browse files
authored
feat: upgrade tfe_outputs to the provider framework (#1640)
* feat: add new `tfe_outputs` ephemeral resource, upgrade data source to framework * chore: make some linter config changes * chore: keep acc test provider registered * chore: use default org from provider config * docs: update example * docs: clean up docs
1 parent 175f48d commit 1e0c4ea

12 files changed

+781
-683
lines changed

.golangci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ linters:
1111
- noctx #https://github.com/sonatard/noctx
1212
- nilerr #https://github.com/gostaticanalysis/nilerr
1313
- nestif #https://github.com/nakabonne/nestif
14-
- exportloopref #https://github.com/kyoh86/exportloopref
14+
- copyloopvar #https://github.com/karamaru-alpha/copyloopvar
1515
- bodyclose #https://github.com/timakin/bodyclose
1616
# - goconst #https://github.com/jgautheron/goconst
1717
- stylecheck #https://github.com/dominikh/go-tools/tree/master/stylecheck
@@ -31,6 +31,10 @@ issues:
3131
linters:
3232
- unused
3333
- deadcode
34+
# This exclusion can be removed if desired
35+
- linters:
36+
- stylecheck
37+
text: "error strings should not be capitalized"
3438
# Exclude stylecheck underscore warnings in test files since most test files already follow this pattern
3539
- linters:
3640
- stylecheck

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ BUG FIXES:
3838

3939
* `r/tfe_workspace_settings`: Prevent fetching of all workspaces as the `remote_state_consumer_ids` when `global_remote_state` is set to true, by @uk1288 [#1606](https://github.com/hashicorp/terraform-provider-tfe/pull/1606)
4040

41+
ENHANCEMENTS:
42+
* **New Ephemeral Resource:** `tfe_outputs` is a new ephemeral resource for retrieving the state version outputs of a workspace without writing sensitive data to the state file, by @ctrombley [#1640](https://github.com/hashicorp/terraform-provider-tfe/pull/1640)
43+
4144
## v.0.63.0
4245

4346
BUG FIXES:

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ require (
2525
github.com/mattn/go-isatty v0.0.20 // indirect
2626
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
2727
github.com/zclconf/go-cty v1.16.2
28+
github.com/zclconf/go-cty v1.16.2 // indirect
2829
golang.org/x/crypto v0.36.0 // indirect
2930
golang.org/x/net v0.37.0 // indirect
3031
golang.org/x/oauth2 v0.25.0 // indirect

0 commit comments

Comments
 (0)