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 v0.14, v0.13 as well as v0.12.9 and above and is compatible with the Terraform Github Provider v3 as well as v2.4 and above.
- Module Features
- Getting Started
- Module Argument Reference
- Module Attributes Reference
- External Documentation
- Module Versioning
- About Mineiros
- Reporting Issues
- Contributing
- Makefile Targets
- License
-
Standard Module Features: Organization Members, Organization Owners (Admins), Organization Projects, Blocked Users
-
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
To quickly start managing your GitHub Organization with Terraform:
module "organization" {
source = "mineiros-io/organization/github"
version = "~> 0.3.0"
create_all_members_team = true
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"
}
]
}See variables.tf and examples/ for details and use-cases.
-
blocked_users: (Optionalset(string))A list of usernames to be blocked from a GitHub organization. Default is
[]. -
members: (Optionalset(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
[]. -
admins: (Optionalset(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
[]. -
projects: (Optionallist(project)) Create and manage projects for the GitHub organization. Default is[]. -
all_members_team_name: (Optionalstring)The name of the team that contains all members of the organization. Default is
null. -
all_members_team_visibility: (Optionalstring)The level of privacy for the team. Must be one of
secretorclosed. Default issecret.
The following attributes are exported by the module:
-
module_enabledWhether this module is enabled.
-
blocked_usersA list of
github_organization_blockresource objects that describe all users that are blocked by the organization. -
membershipsA list of
github_membershipresource objects that describe all members of the organization. -
projectsA list of
github_organization_projectresource objects that describe all projects of the organization.
- Terraform Github Provider Documentation:
This Module follows the principles of Semantic Versioning (SemVer).
Given a version number MAJOR.MINOR.PATCH, we increment the:
MAJORversion when we make incompatible changes,MINORversion when we add functionality in a backwards compatible manner, andPATCHversion when we make backwards compatible bug fixes.
- Backwards compatibility in versions
0.0.zis not guaranteed whenzis increased. (Initial development) - Backwards compatibility in versions
0.y.zis not guaranteed whenyis increased. (Pre-release)
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
We use GitHub Issues to track community reported issues and missing features.
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.
This repository comes with a handy Makefile.
Run make help to see details on each available target.
This module is licensed under the Apache License Version 2.0, January 2004. Please see LICENSE for full details.
Copyright © 2020 Mineiros GmbH