https://github.com/iac-factory/github-organization
Organizational Account Configuration(s) via Terraform
https://github.com/iac-factory/github-organization
automation ci-cd code-generation development-lifecycle github-organization github-provider go iac-factory terrafom version-control
Last synced: 2 months ago
JSON representation
Organizational Account Configuration(s) via Terraform
- Host: GitHub
- URL: https://github.com/iac-factory/github-organization
- Owner: iac-factory
- License: bsd-2-clause
- Created: 2022-04-09T04:49:56.000Z (about 3 years ago)
- Default Branch: Development
- Last Pushed: 2022-04-24T08:21:00.000Z (about 3 years ago)
- Last Synced: 2025-02-08T17:44:56.529Z (4 months ago)
- Topics: automation, ci-cd, code-generation, development-lifecycle, github-organization, github-provider, go, iac-factory, terrafom, version-control
- Language: HCL
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [`github-organization`](https://github.com/iac-factory/github-organization) #
Organizational Account Configuration(s) via `terraform` - `iac-factory`
- Significant Issue: https://github.com/integrations/terraform-provider-github/issues/1123
## Overview ##
Various `github` provider configurations will share similarity; even more `terraform` packages will share configurations as it relates
to the organization's (or user preference) primary VCS system.The following `terraform` package contains module(s) for global settings, `data` references, and overall, generally
useful `github` organization and repository-related configurations.
## Authentication ##- Required: [OAuth GitHub Token](https://github.com/settings/tokens/new)
The [`github` provider](./provider.tf) authorization settings will define `token` that's passed in as user-input. Additionally,
a variable assignment to `organization` will be required. *Please note* - the `owner` key can be assigned to a user's
username or otherwise personal account, identifiable value as well.
[`provider.tf`](./provider.tf)
```terraform
provider "github" {
token = var.token
owner = var.organization
...
}
```[`variables.tf`](./variables.tf)
```terraform
/// Note Issue: https://github.com/integrations/terraform-provider-github/issues/1123variable "token" {
description = "GitHub Provider OAuth Token"
nullable = false
type = string
sensitive = truevalidation {
condition = var.token != null && var.token != ""
error_message = "Cannot Specify an Empty String for GitHub Authorization Token."
}
}variable "organization" {
description = "GitHub Provider's Owner (User or Organization)"
nullable = false
type = stringvalidation {
condition = var.token != null && var.organization != ""
error_message = "Cannot Specify an Empty String for the GitHub Owner (User) or Organization."
}
}...
```