{"id":17096094,"url":"https://github.com/ega4432/terraform-github-org-setup","last_synced_at":"2026-01-18T20:33:16.884Z","repository":{"id":193252010,"uuid":"688297478","full_name":"ega4432/terraform-github-org-setup","owner":"ega4432","description":"This is a Terraform module to invite members to your organization and create each repositories.","archived":false,"fork":false,"pushed_at":"2025-03-04T06:07:05.000Z","size":233,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T07:22:11.878Z","etag":null,"topics":["github-provider","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ega4432.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-07T04:08:04.000Z","updated_at":"2023-09-11T09:27:07.000Z","dependencies_parsed_at":"2024-04-28T06:26:19.586Z","dependency_job_id":"c2202a82-2f17-44ce-9b0a-fcf57f52ad59","html_url":"https://github.com/ega4432/terraform-github-org-setup","commit_stats":null,"previous_names":["ega4432/terraform-github-org-setup"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ega4432%2Fterraform-github-org-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ega4432%2Fterraform-github-org-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ega4432%2Fterraform-github-org-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ega4432%2Fterraform-github-org-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ega4432","download_url":"https://codeload.github.com/ega4432/terraform-github-org-setup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419871,"owners_count":20936013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-provider","terraform","terraform-module"],"created_at":"2024-10-14T14:44:36.612Z","updated_at":"2026-01-18T20:33:16.878Z","avatar_url":"https://github.com/ega4432.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-github-org-setup\n\n[![CI](https://github.com/ega4432/terraform-github-org-setup/actions/workflows/ci.yaml/badge.svg)](https://github.com/ega4432/terraform-github-org-setup/actions/workflows/ci.yaml)\n\n## Usage\n\n`main.tf`\n\n```tf\nmodule \"organization\" {\n  source = \"git@github.com:ega4432/terraform-github-org-setup.git\"\n\n  org_settings = {\n    billing_email                 = var.billing_email\n    default_repository_permission = var.default_repository_permission\n  }\n\n  admins  = var.admins\n  members = var.members\n}\n```\n\n`*.tfvars`\n\n```tf\ngithub_pat = \"YOUR_GITHUB_PERSONAL_ACCESS_TOKEN\"\n\nbilling_email                 = \"YOUR_ORGANIZATION_USER_EMAIL\"\ndefault_repository_permission = \"none\" # Repository permissions for members (default to \"read only\")\norg_name                      = \"YOUR_ORGANIZATION_NAME\"\n\nadmins = []  # YOUR_ORGANIZATION_ADMIN_USERS\nmembers = [  # YOUR_ORGANIZATION_MEMBERS\n  {\n    user        = \"xxx\"\n    fullname    = \"xxx xxx\"\n  }\n  {\n    user        = \"yyy\"\n    fullname    = \"yyy yyy\"\n  }\n]\n```\n\nOnce you have prepared the necessary files as described above, execute the following command.\n\n```sh\n$ terraform init\n\n$ terraform plan -var-file \u003cYOUR_VARS_FILE_NAME\u003e.tfvars -out=tfplan\n\n$ terraform apply tfplan\n```\n\nSee [example](https://github.com/ega4432/terraform-github-org-setup/tree/main/examples/organization) for more information.\n\n## Test\n\nThe Go library called [Terratest](https://github.com/gruntwork-io/terratest) is used for testing.\n\n```sh\n$ cd test/\n\n$ go test -timeout 1m\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fega4432%2Fterraform-github-org-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fega4432%2Fterraform-github-org-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fega4432%2Fterraform-github-org-setup/lists"}