An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# terraform-github-membership
Terraform module to manage users in github organization

[![lint](https://github.com/flaconi/terraform-github-membership/workflows/lint/badge.svg)](https://github.com/flaconi/terraform-github-membership/actions?query=workflow%3Alint)
[![test](https://github.com/flaconi/terraform-github-membership/workflows/test/badge.svg)](https://github.com/flaconi/terraform-github-membership/actions?query=workflow%3Atest)
[![Tag](https://img.shields.io/github/tag/flaconi/terraform-github-membership.svg)](https://github.com/flaconi/terraform-github-membership/releases)
[![Terraform](https://img.shields.io/badge/Terraform--registry-github--membership-brightgreen.svg)](https://registry.terraform.io/modules/Flaconi/membership/github/)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](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):

### [admins](#input\_admins)

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)**