mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-02 13:00:45 -05:00
Added the ability to set the "privacy" of a github_team resource so all teams won't automatically set to private. * Added the privacy argument to github_team * Refactored parameter validation to be general for any argument * Updated testing
932 B
932 B
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| github | GitHub: github_team | docs-github-resource-team | Provides a GitHub team resource. |
github_team
Provides a GitHub team resource.
This resource allows you to add/remove teams from your organization. When applied, a new team will be created. When destroyed, that team will be removed.
Example Usage
# Add a team to the organization
resource "github_team" "some_team" {
name = "some-team"
description = "Some cool team"
privacy = "closed"
}
Argument Reference
The following arguments are supported:
name- (Required) The name of the team.description- (Optional) A description of the team.privacy- (Optional) The level of privacy for the team. Must be one ofsecretorclosed. Defaults tosecret.
Attributes Reference
The following attributes are exported:
id- The ID of the created team.