https://github.com/flaconi/terraform-github-membership
This module include existing users into organisation
https://github.com/flaconi/terraform-github-membership
github terraform terraform-module
Last synced: 2 months ago
JSON representation
This module include existing users into organisation
- Host: GitHub
- URL: https://github.com/flaconi/terraform-github-membership
- Owner: Flaconi
- License: mit
- Created: 2021-12-28T11:09:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-08-18T08:20:52.000Z (10 months ago)
- Last Synced: 2025-10-29T01:27:35.067Z (8 months ago)
- Topics: github, terraform, terraform-module
- Language: Makefile
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 8
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# terraform-github-membership
Terraform module to manage users in github organization
[](https://github.com/flaconi/terraform-github-membership/actions?query=workflow%3Alint)
[](https://github.com/flaconi/terraform-github-membership/actions?query=workflow%3Atest)
[](https://github.com/flaconi/terraform-github-membership/releases)
[](https://registry.terraform.io/modules/Flaconi/membership/github/)
[](https://opensource.org/licenses/MIT)
## Providers
| Name | Version |
|------|---------|
| [github](#provider\_github) | ~> 6.2, <=6.7.1 |
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3 |
| [github](#requirement\_github) | ~> 6.2, <=6.7.1 |
## Required Inputs
No required inputs.
## Optional Inputs
The following input variables are optional (have default values):
Description: List of users with admin role
Type:
```hcl
list(object({
name = string
github = string
teams = optional(map(string), {})
}))
```
Default: `[]`
### [members](#input\_members)
Description: List of users with member role
Type:
```hcl
list(object({
name = string
github = string
teams = optional(map(string), {})
}))
```
Default: `[]`
### [team\_ids](#input\_team\_ids)
Description: A dictionary for team IDs to avoid additional calls to GitHub API
Type: `map(string)`
Default: `{}`
## Outputs
| Name | Description |
|------|-------------|
| [memberships](#output\_memberships) | A map of members and admins keyed by username. |
| [teams](#output\_teams) | A map of teams with members and corresponding roles. |
## License
**[MIT License](LICENSE)**
Copyright (c) 2021 **[Flaconi GmbH](https://github.com/flaconi)**