2016-03-08 23:05:22 +01:00
|
|
|
---
|
|
|
|
layout: "github"
|
2016-04-07 16:26:01 +02:00
|
|
|
page_title: "GitHub: github_team"
|
2016-03-08 23:05:22 +01:00
|
|
|
sidebar_current: "docs-github-resource-team"
|
|
|
|
description: |-
|
2016-04-07 16:26:01 +02:00
|
|
|
Provides a GitHub team resource.
|
2016-03-08 23:05:22 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
# github\_team
|
|
|
|
|
2016-04-07 16:26:01 +02:00
|
|
|
Provides a GitHub team resource.
|
2016-03-08 23:05:22 +01:00
|
|
|
|
|
|
|
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"
|
2016-04-11 14:09:25 +02:00
|
|
|
privacy = "closed"
|
2016-03-08 23:05:22 +01:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `name` - (Required) The name of the team.
|
|
|
|
* `description` - (Optional) A description of the team.
|
2016-04-11 14:09:25 +02:00
|
|
|
* `privacy` - (Optional) The level of privacy for the team. Must be one of `secret` or `closed`.
|
|
|
|
Defaults to `secret`.
|
2016-03-08 23:05:22 +01:00
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
|
|
|
* `id` - The ID of the created team.
|