Terraform IaC to automatically build GitHub infrastructure. In this project you can set the number of repositories you want to made, copy README and .gitignore files, create 3 additional branches in it (production, bugfixing, development). Here you can see the example repo.
- Generate OAuth token in GitHub
- Set the environmental variable:
export GITHUB_TOKEN="your_oath_token"- Run Terraform commands:
terraform init
terraform apply| Name | Version |
|---|---|
| terraform | >= 1.2.8 |
| github | ~> 4.0 |
| Name | Version |
|---|---|
| github | 4.30.0 |
No modules.
| Name | Type |
|---|---|
| github_branch.bugfixing | resource |
| github_branch.development | resource |
| github_branch.production | resource |
| github_branch_default.default | resource |
| github_issue.add_patterns_to_gitignore | resource |
| github_issue.rewrite_readme | resource |
| github_issue_label.optimisation_label | resource |
| github_repository.example | resource |
| github_repository_collaborator.a_repo_collaborator | resource |
| github_repository_file.README | resource |
| github_repository_file.gitignore | resource |
| github_repository_milestone.step1 | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| admin | n/a | string |
"agriii927" |
no |
| collaborator_permission | n/a | string |
"pull" |
no |
| repo_count | Number of repos to made in GitHub | number |
2 |
no |
| step1_till | n/a | string |
"2022-09-01" |
no |
| token | Token to authentificate | string |
n/a | yes |
| user_to_collaborate | n/a | string |
"Jasstkn" |
no |
No outputs.