All Projects → mineiros-io → terraform-github-organization

mineiros-io / terraform-github-organization

Licence: Apache-2.0 license
A Terraform module to manage GitHub Organizations. https://github.com/

Programming Languages

HCL
1544 projects
Makefile
30231 projects
go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to terraform-github-organization

terraform-aws-s3-bucket
A Terraform module to create a Simple Storage Service (S3) Bucket on Amazon Web Services (AWS). https://aws.amazon.com/s3/
Stars: ✭ 47 (-11.32%)
Mutual labels:  iac, terraform-modules, mineiros
terraform-aws-cognito-user-pool
A Terraform module to create and manage Cognito User Pools (Simple and Secure User Sign-Up, Sign-In, and Access Control) on Amazon Web Services (AWS). https://aws.amazon.com/cognito
Stars: ✭ 46 (-13.21%)
Mutual labels:  iac, terraform-modules, mineiros
terraform-aws-lambda-function
A Terraform module for deploying and managing Lambda functions on Amazon Web Services (AWS). https://aws.amazon.com/lambda/
Stars: ✭ 37 (-30.19%)
Mutual labels:  iac, terraform-modules, mineiros
terraform-aws-iam-user
A Terraform module to create and manage Identity and Access Management (IAM) Users on Amazon Web Services (AWS). https://aws.amazon.com/iam
Stars: ✭ 17 (-67.92%)
Mutual labels:  iac, terraform-modules, mineiros
terraform-aws-route53
A Terraform module to create a Route53 Domain Name System (DNS) on Amazon Web Services (AWS). https://aws.amazon.com/route53/
Stars: ✭ 39 (-26.42%)
Mutual labels:  iac, terraform-modules, mineiros
terramate
Terramate is a tool for managing multiple Terraform stacks that comes with support for change detection and code generation.
Stars: ✭ 271 (+411.32%)
Mutual labels:  iac, mineiros
terraform-modules
Reusable Terraform modules
Stars: ✭ 12 (-77.36%)
Mutual labels:  iac, terraform-modules
terraform-modules
Terraform Modules by Peak
Stars: ✭ 16 (-69.81%)
Mutual labels:  iac, terraform-modules
terraform-oci-vcn
A reusable and extensible Terraform module that provisions a VCN on Oracle Cloud Infrastructure
Stars: ✭ 22 (-58.49%)
Mutual labels:  iac, terraform-modules
terraform-aws-account
🌳 A sustainable Terraform Package which creates Account & IAM resources on AWS
Stars: ✭ 18 (-66.04%)
Mutual labels:  iac, terraform-modules
terraform-vsphere-single-vm
Deploy single vSphere VM with Terraform - template.
Stars: ✭ 21 (-60.38%)
Mutual labels:  iac
devops-infra-demo
Growing repository of Infrastructure as Code demos (initially created for DevOps Wall Street)
Stars: ✭ 31 (-41.51%)
Mutual labels:  iac
PSRule-pipelines
Validate infrastructure as code (IaC) and DevOps repositories using Azure Pipelines.
Stars: ✭ 16 (-69.81%)
Mutual labels:  iac
Pulumi
Pulumi - Developer-First Infrastructure as Code. Your Cloud, Your Language, Your Way 🚀
Stars: ✭ 10,887 (+20441.51%)
Mutual labels:  iac
fauna-gql-upload
A tool for managing your FaunaDB database using files. Create resources such as functions by simply creating a new file.
Stars: ✭ 45 (-15.09%)
Mutual labels:  iac
yor
Extensible auto-tagger for your IaC files. The ultimate way to link entities in the cloud back to the codified resource which created it.
Stars: ✭ 459 (+766.04%)
Mutual labels:  iac
awesome-projen
P6M7G8's Awesome Projen
Stars: ✭ 39 (-26.42%)
Mutual labels:  iac
iac
Plataforma de Infrastructure as Code do Dados Abertos de Feira 🛠
Stars: ✭ 76 (+43.4%)
Mutual labels:  iac
Werf
The CLI tool gluing Git, Docker, Helm, and Kubernetes with any CI system to implement CI/CD and Giterminism
Stars: ✭ 2,814 (+5209.43%)
Mutual labels:  iac
Trivy
Scanner for vulnerabilities in container images, file systems, and Git repositories, as well as for configuration issues
Stars: ✭ 9,673 (+18150.94%)
Mutual labels:  iac

Build Status GitHub tag (latest SemVer) Terraform Version Github Provider Version Join Slack

terraform-github-organization

A Terraform module that acts as a wrapper around the Terraform GitHub provider and offers a more convenient and tested way to manage GitHub Organizations following best practices.

This module supports Terraform v1.x and is compatible with the Official Terraform GitHub Provider v5.x from integrations/github.

Attention: This module is incompatible with the Hashicorp GitHub Provider! The latest version of this module supporting hashicorp/github provider is ~> 0.6.0

GitHub as Code

GitHub as Code is a commercial solution built on top of our open-source Terraform modules for GitHub. It helps our customers to manage their GitHub organization more efficiently by enabling anyone in their organization to self-service manage on- and offboarding of users, repositories, and settings such as branch protections, secrets, and more through code. GitHub as Code comes with pre-configured GitHub Actions pipelines for change pre-view in Pull Requests, fully automated rollouts and rollbacks. It's a comprehensive, ready-to-use blueprint maintained by our team of platform engineering experts and saves companies such as yours tons of time by building on top of a pre-configured solution instead of building and maintaining it yourself.

For details please see https://mineiros.io/github-as-code.

Module Features

  • Standard Module Features: Organization Members, Organization Owners (Admins), Organization Projects, Blocked Users, Manage Organization Settings

  • Extended Module Features: Change organization member roles without removing and re-inviting users, Rename projects without recreating (when providing unique ids), No need to import members/admins on first run, Create an all member team that contains every member of your organization

Getting Started

To quickly start managing your GitHub Organization with Terraform:

module "organization" {
  source  = "mineiros-io/organization/github"
  version = "~> 0.9.0"

  all_members_team_name = "Mineiros"

  settings = {
    billing_email                                                = "[email protected]"
    company                                                      = "Mineiros"
    blog                                                         = "https://blog.mineiros.io"
    email                                                        = "[email protected]"
    twitter_username                                             = "mineirosio"
    location                                                     = "Berlin"
    name                                                         = "Terraform Tests"
    description                                                  = "This Organization is just used to run some Terraform tests for https://github.com/mineiros-io"
    has_organization_projects                                    = true
    has_repository_projects                                      = true
    default_repository_permission                                = "read"
    members_can_create_repositories                              = false
    members_can_create_public_repositories                       = false
    members_can_create_private_repositories                      = false
    members_can_create_internal_repositories                     = false
    members_can_create_pages                                     = false
    members_can_create_public_pages                              = false
    members_can_create_private_pages                             = false
    members_can_fork_private_repositories                        = false
    web_commit_signoff_required                                  = false
    advanced_security_enabled_for_new_repositories               = false
    dependabot_alerts_enabled_for_new_repositories               = false
    dependabot_security_updates_enabled_for_new_repositories     = false
    dependency_graph_enabled_for_new_repositories                = false
    secret_scanning_enabled_for_new_repositories                 = false
    secret_scanning_push_protection_enabled_for_new_repositories = false
  }


  members = [
    "a-user",
    "b-user",
  ]

  admins = [
    "a-admin",
  ]

  blocked_users = [
    "blocked-user",
    "another-blocked-user",
  ]

  projects = [
    {
      id   = "project-a"
      name = "A Great Project"
      body = "This is a project created by Terraform"
    }
  ]
}

provider "github" {}

terraform {
  required_version = "~> 1.0"

  required_providers {
    github = {
      source  = "integrations/github"
      version = "~> 4.0"
    }
  }
}

Module Argument Reference

See variables.tf and examples/ for details and use-cases.

Top-level Arguments

  • settings: (Optional object(settings))

    A map of settings for the GitHub organization.

    Default is {"fixed_response":{"content_type":"plain/text","message_body":"Nothing to see here!","status_code":418}}.

    The settings object accepts the following attributes:

  • blocked_users: (Optional set(string))

    A list of usernames to be blocked from a GitHub organization.

    Default is [].

    Example:

    blocked_users = [
      "blocked-user"
    ]
  • members: (Optional set(string))

    A list of users to be added to your organization with member role. When applied, an invitation will be sent to the user to become part of the organization. When destroyed, either the invitation will be cancelled or the user will be removed.

    Default is [].

    Example:

    members = [
      "admin",
      "another-admin"
    ]
  • admins: (Optional set(string))

    A list of users to be added to your organization with admin role. When applied, an invitation will be sent to the user to become part of the organization. When destroyed, either the invitation will be cancelled or the user will be removed.

    Default is [].

    Example:

    admins = [
      "admin",
      "another-admin"
    ]
  • projects: (Optional list(project))

    Create and manage projects for the GitHub organization.

    Default is [].

    Example:

    projects = [
      {
        name   = "Test Project"
        body   = "This is a test project created by Terraform"
      },
      {
        name   = "Test Project without a body"
      }
    ]
  • all_members_team_name: (Optional string)

    The name of the team that contains all members of the organization.

  • all_members_team_visibility: (Optional string)

    The level of privacy for the team. Must be one of secret or closed.

    Default is "secret".

  • catch_non_existing_members: (Optional bool)

    Validates if the list of GitHub users are existing users on every run. Use carefully as it will trigger one additional API call for every given user on every iteration.

    Default is false.

Module Outputs

The following attributes are exported by the module:

  • blocked_users: (set(string))

    A list of github_organization_block resource objects that describe all users that are blocked by the organization.

  • memberships: (list(membership))

    A list of github_membership resource objects that describe all members of the organization.

  • projects: (list(project))

    A list of github_organization_project resource objects that describe all projects of the organization.

  • all_members_team: (object(all_members_team))

    The outputs of the all members team that contains all members of your organization.

  • settings: (object(all_members_team))

    The outputs of the organization settings.

External Documentation

Terraform Github Provider Documentation:

Module Versioning

This Module follows the principles of Semantic Versioning (SemVer).

Given a version number MAJOR.MINOR.PATCH, we increment the:

  1. MAJOR version when we make incompatible changes,
  2. MINOR version when we add functionality in a backwards compatible manner, and
  3. PATCH version when we make backwards compatible bug fixes.

Backwards compatibility in 0.0.z and 0.y.z version

  • Backwards compatibility in versions 0.0.z is not guaranteed when z is increased. (Initial development)
  • Backwards compatibility in versions 0.y.z is not guaranteed when y is increased. (Pre-release)

About Mineiros

Mineiros is a DevOps as a Service company based in Berlin, Germany. We offer commercial support for all of our projects and encourage you to reach out if you have any questions or need help. Feel free to send us an email at [email protected] or join our Community Slack channel.

We can also help you with:

  • Terraform modules for all types of infrastructure such as VPCs, Docker clusters, databases, logging and monitoring, CI, etc.
  • Consulting & training on AWS, Terraform and DevOps

Reporting Issues

We use GitHub Issues to track community reported issues and missing features.

Contributing

Contributions are always encouraged and welcome! For the process of accepting changes, we use Pull Requests. If you'd like more information, please see our Contribution Guidelines.

Makefile Targets

This repository comes with a handy Makefile. Run make help to see details on each available target.

License

license

This module is licensed under the Apache License Version 2.0, January 2004. Please see LICENSE for full details.

Copyright © 2021-2022 Mineiros GmbH

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].