Git Product home page Git Product logo

terraform-github-teams's Introduction

terraform-github-teams

Releases

Terraform Module Registry

Terraform module to manage GitHub teams

Requirements

  • GitHub personal access token with admin rights to an organization
    • Provide token via environment variable

    export GITHUB_TOKEN='TOKEN'

Features

  • Manage GitHub teams
    • Manage nested teams (currently 4 levels)
  • Manage team members

Terraform doesn't handle dynamic recursion or resource dependencies. To do nested teams, the code would either need to be run multiple times or manage a fixed maximum number of levels. This module manages up to 4 levels of nesting. But could easily be expanded to more.

Usage

Basic usage of this module is as follows:

module "example" {
    source = "notablehealth/<module-name>/github"
    # Recommend pinning every module to a specific version
    # version = "x.x.x"

    # Required variables
    github_owner =
}

Requirements

Name Version
terraform >= 1.5
github ~> 5.29

Providers

Name Version
github 5.29.0

Modules

No modules.

Resources

Name Type
github_team.teams_level2 resource
github_team.teams_level3 resource
github_team.teams_level4 resource
github_team.teams_root resource
github_team_members.self resource

Inputs

Name Description Type Default Required
github_owner GitHub organization string n/a yes
teams GitHub Team configuration objects
map(object({
name = string
description = string
privacy = optional(string, "closed")
parent_team = optional(string)
members = optional(list(object({
full_name = optional(string)
username = string
role = optional(string, "member")
})))
}))
{} no

Outputs

Name Description
teams_level2 GitHub level 2 teams
teams_level3 GitHub level 3 teams
teams_level4 GitHub level 4 teams
teams_root GitHub root level teams

terraform-github-teams's People

Contributors

snemetz avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.