Skip to content

agriii927/terraform_github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick GitHub infrastructure built by Terraform

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.

To run this terraform script use following commands:

  1. Generate OAuth token in GitHub
  2. Set the environmental variable:
export GITHUB_TOKEN="your_oath_token"
  1. Run Terraform commands:
terraform init
terraform apply

Requirements

Name Version
terraform >= 1.2.8
github ~> 4.0

Providers

Name Version
github 4.30.0

Modules

No modules.

Resources

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

Inputs

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

Outputs

No outputs.

About

Terraform IaC to automatically build GitHub infrastructure

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages