Skip to content

Commit 1e76e7d

Browse files
authored
Merge pull request #1439 from hashicorp/TF-15053-terraform-provider-tfe-gh-issue-1341-tfe-team-visibility-not-being-set-as-defined
Remove 'secret' default from `tfe_team` because it requires explicit or owner access
2 parents a6bf06c + 55116c4 commit 1e76e7d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Unreleased
2+
3+
## BREAKING CHANGES
4+
5+
* `r/tfe_team`: Default "secret" visibility has been removed from tfe_team because it now requires explicit or owner access. The default, "organization", is now computed by the platform. by @brandonc [#1439](https://github.com/hashicorp/terraform-provider-tfe/pull/1439)
6+
17
## v0.58.0
28

39
ENHANCEMENTS:

internal/provider/resource_tfe_team.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func resourceTFETeam() *schema.Resource {
131131
"visibility": {
132132
Type: schema.TypeString,
133133
Optional: true,
134-
Default: "secret",
134+
Computed: true,
135135
ValidateFunc: validation.StringInSlice([]string{
136136
"secret",
137137
"organization",

website/docs/r/team.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The following arguments are supported:
3838

3939
* `name` - (Required) Name of the team.
4040
* `organization` - (Optional) Name of the organization. If omitted, organization must be defined in the provider config.
41-
* `visibility` - (Optional) The visibility of the team ("secret" or "organization"). Defaults to "secret".
41+
* `visibility` - (Optional) The visibility of the team ("secret" or "organization")
4242
* `organization_access` - (Optional) Settings for the team's [organization access](https://developer.hashicorp.com/terraform/cloud-docs/users-teams-organizations/permissions#organization-permissions).
4343
* `sso_team_id` - (Optional) Unique Identifier to control [team membership](https://developer.hashicorp.com/terraform/cloud-docs/users-teams-organizations/single-sign-on#team-names-and-sso-team-ids) via SAML. Defaults to `null`
4444
* `allow_member_token_management` - (Optional) Used by Owners and users with "Manage Teams" permissions to control whether team members can manage team tokens. Defaults to `true`.

0 commit comments

Comments
 (0)